Jump to content

Recommended Posts

Posted

Hello there! 

I'm wondering if it's possible to provide a body when making a JSON Import HTTP request, I can't find an entry field for a body but maybe I'm just looking in the wrong place. 

I've also looked in the documentation and can't find a mention to a request body, can you shed any light on this? 🙂

Posted

Hello Llewelyn,

here is the procedure to successfully add a body:

  1. Create (externally) a json file which contains the body you want to add.

  2. Import the file through an Import from Json File (json1) task.

  3. Add an Export to Json File (jsonexport1) task, link it to the existing import task and open it to:

    1. Configure the required HTTP options.

    2. Add the required response file path.

  4. Save and compute the task.

  5. Add a second Import from Json File (json2) task to the flow and configure it so that it imports the json file you have exported previously.

  6. Configure the above-mentioned (json2) task’s priority and set it at -9999, to really import what has been just exported. To know more about setting priorities on the Factory, refer to this page: Prioritizing Tasks in the Factory (rulex.ai)

I am attaching a screenshot with the expected flow.

Would you like to share with us more information about this issue?

Remember that everything posted on this community is PUBLIC, if you're about to share sensitive values please contact us via email at: [email protected]

Best,

Sara

 

spacer.png

 

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...