05-09-2023 02:23 AM
What is the best buy to work with the activity response body output variable in the http request activity? For example to check if one query to an external system is empty. I couldn't do {{httpRequest.httpResponseBody is empty }} or {{httpRequest.httpResponseBody
I was able to make it work parsing the path expression '$' to a new JSON variable that I created, but I guess there should be an easier way.
05-17-2023 07:04 AM
Hi Shrishail,
you are right, I should have given more details. I want to use the HTTP node Activity Output variable NODE_NAME.httpReponseBody later in one Condition node, where I am checking if it is empty ([]).
I will be sending you the flow 1:1, since uploading json files is not supported here.
Thanks,
Victor
05-09-2023 09:16 AM
Both the expressions below should work, you can use test expression feature within the flow builder to test it out.
{{HTTPRequest_23n.httpResponseBody is empty}}
{{HTTPRequest_23n.httpResponseBody | length == 0}}
You can then use the above expressions in the condition node to validate for true/false.
Please find screenshots below.
05-09-2023 11:28 PM
05-15-2023 02:58 PM
Please give more details on what you are trying to achieve. Earlier you mentioned you wanted to perform the empty check, however, I see now you would like to pass the HTTP node response body from node one to another API call in HTTP node 2, is that the case?
Also pls provide an export of your flow.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide