Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

NIFI Use a dinamic atribute in InvokeHTTP

avatar
New Contributor

Im trying to do an app that takes a json from a web filter the url attribute of the JSON and get the html of this url.

9409-architecture.png

My problem is that I can’t set in the property remote url in InvokeHTTP the url that I got in SplitJSON.

This is the config of splitJSON (it works, the output is the url that i want)

9410-confjson.png

And this is the conf of the InvokeHTTP (it work if I set manually the url) but I dont know how to set a dinamic url.

9421-conf2.png

1 ACCEPTED SOLUTION

avatar
Super Mentor
@Lucas Alvarez

The SplitJSON processor splits an incoming JSON on to multiple output JSON messages. You should use the EvaluateJSONPath processor to extract the URL from your splits and ssign them to a FlowFIle attribute you acn then use in your InvokeHTTP processor.

Thanks,

Matt

View solution in original post

1 REPLY 1

avatar
Super Mentor
@Lucas Alvarez

The SplitJSON processor splits an incoming JSON on to multiple output JSON messages. You should use the EvaluateJSONPath processor to extract the URL from your splits and ssign them to a FlowFIle attribute you acn then use in your InvokeHTTP processor.

Thanks,

Matt