HTTP Request with Body Query

Post Reply
Farva
Newbie
Posts: 7
Joined: Wed Jul 07, 2021 11:14 pm

HTTP Request with Body Query

Post 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"
}
]
}
laurentd
Member
Posts: 137
Joined: Wed Mar 13, 2019 2:06 pm

Re: HTTP Request with Body Query

Post 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.
Laurent De Wilde, Solution Architect @ Enfocus
Post Reply