- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
From InvokeHTTP Json response value call another InvokeHTTP in apache nifi
- Labels:
-
Apache NiFi
Created on ‎01-02-2024 04:55 AM - edited ‎01-02-2024 05:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sir,
I am using apache nifi. I have called first InvokeHTTP which provides json response. From json response, I need transactionReference and post another InvokeHTTP using transactionReference with some other value using jsonbody request. Here is the first InvokeHTTP json response:
Getting transactionReference from above json resposne, I need to call second InvokeHTTP using json reqeustbody . Here is second InvokeHTTP reqeustbody need to send:
I have tried below like diagram:
Flow is: Getfile->UpdateAttribute->InvokeHttp->EvaluateJsonPath->UpdateAtribute ->AttributeToJson->InvokeHTTP
Here is Screen shot start from EvaluateJsonPath :
UpdateAtribute
AttributeToJson:
InvokeHTTP
My request json not updated. I got first json response. That means I got first invokeHTTP response when I called second invokeHTTP .
What is wrong of my configuration?
Created on ‎01-03-2024 06:50 AM - edited ‎01-03-2024 06:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@enam I cant see the entire configuration of the second InvokeHTTP so I am not sure if you are passing those new attributes into the HTTP URL. If you are not doing that, I think the solution you are looking for is to have the AttributesToJson set Destination to FlowFile Content. Then when you post that to invokeHttp, those values are seen as the post content.
