Member since
06-15-2023
5
Posts
0
Kudos Received
0
Solutions
08-21-2023
08:37 AM
Let's take this a different direction... open up a code box in your reply. Choose Preformatted: Insert Lines 0 - 11 here Remove anything sensitive of course.
... View more
06-23-2023
06:02 AM
@bhadraka Check out this flow definition example for how to prepare and test JSON ahead of an invokeHttp post. Flow Def File: https://raw.githubusercontent.com/cldr-steven-matison/NiFi-Templates/main/InvokeHttp_Demo_2.json As far as the post itself goes. I highly recommend that you test API calls with something like Postman so that you can clearly test what headers and such are required so that the API call works. Only then try to make it work with InvokeHttp duplicating all headers. Figuring out how to get the call to work and how to configure InvokeHTTP at same time is not fun. TIP: in Invoke HTTP click the + to add key value pairs corresponding to your headers or values you need to pass.
... View more
06-16-2023
07:23 AM
@bhadraka What version of NiFi are you using? In NiFi 1.20.0, you can use ReplaceText Processor after reading in the file. Using the line-by-line evaluation mode, there is a drop down "Except-Last-Line". You could then configure it to just replace all previous lines with empty strings. Here's a screenshot of my ReplaceText processor properties.
... View more