Page 1 of 1

HTTP Request with Body Query

Posted: Tue Aug 03, 2021 7:55 pm
by Farva
I am attempting to us the built in HTTP application to pull some variables but the query I need to run has code in the raw body portion. I have not been successful at finding how to add this to the built in fields available. Has anyone ran into this before?

Sample of the query:
POST /fmi/data/v1/databases/MoreData/layouts/MORE_LINE_ITEM_DATA/_find HTTP/1.1
Host: somewebsite.com
Authorization: Bearer 18cfbff76b81ec11ac6239041444fa618d2c89328ae0f3c6b6f0
Content-Type: application/json
Content-Length: 62

{
"query": [
{
"LI_Number": "931142"
}
]
}

Re: HTTP Request with Body Query

Posted: Wed Aug 04, 2021 12:06 pm
by laurentd
You can find the solution here:
viewtopic.php?f=13&t=4128&p=12904

Create a JSON file with the app "Make JSON" and post that with the "HTTP request" element.
The attached file is [Job.Path] and the headers go into the "Headers" property.