โ01-18-2023 06:21 PM
Hello Team,
I have created a test pipeline, where using Rest post I am invoking an Ultra pipeline.
The ultra pipeline is simple, it expects the $test input and sends the result back. This is only for test purpose.
Here is the input that I provide to the Rest post snap:
[
{
โurlโ: โhttps://URL/api/1/rest/feed-master/queue/Reece-Dev/-Project/Test/Test%20Task%20Ultraโ,
โtokenโ: โxyzโ,
โtestโ: โ1โ
}
]
Here is a test pipeline :
The Rest post gives an error:
I fail to understand why does the ultra pipeline throw an error when I am passing $test object to it. Here is the snap of Ultra task :
Can someone help here please?
Solved! Go to Solution.
โ01-20-2023 12:44 AM
Hi @viji28,
Incoming JSON structure in Ultra pipelines is different, for better understanding iโll suggest try add โRecord Replayโ snap at very beginning of your pipeline, just to see how it looks JSON structure in Ultra.
Fast answer if your request have body, then those parameters will be in content object ($content.test). Query parameters will be in query object.
Thanks,
Pero M.
โ01-20-2023 12:44 AM
Hi @viji28,
Incoming JSON structure in Ultra pipelines is different, for better understanding iโll suggest try add โRecord Replayโ snap at very beginning of your pipeline, just to see how it looks JSON structure in Ultra.
Fast answer if your request have body, then those parameters will be in content object ($content.test). Query parameters will be in query object.
Thanks,
Pero M.
โ01-20-2023 07:41 AM
Thank you!
I tried using a json formatted and tried writing the input content to the file.
The incoming json structure is indeed different. Though we may think that we are sending json structure but when the ultra receives it, the JSON is under $content.