cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Building a Body with multiple records (Batch)

emorera
Deputy Chef I
Deputy Chef I

Hi there, I am new in this community so to Workato. I am looking for building a Body requests using multiple records (batch), I have a Workato list created but I don't know how to build this body call. Here is a sample



11 REPLIES 11

david-macintosh
Deputy Chef I
Deputy Chef I

So you could have "records" list in your datamodel and map your accumlated list variable datapill to it. If you use a message template you would have somehting like:

{

"upload_request_id":"b3eb858c-e880-4938-bba3-bd5b733dd9b5",

"records":{{Records}}

}


And would have map point of Records to map to in formula mode as datapill.to_json

bennett-goh
Workato employee
Workato employee
Hi Eric! Are you using the connector SDK to build this body or the HTTP connector?