Disclaimer: This post has been updated from Question to Discussion, and the question changed to the answer.
API Definition: Action Batch Service is an API that approves multiple requisitions in a single API call.
Payload model
{
"_records": [
{
"_fields": {
"Company": "string",
"Requisition": "string",
"[Optional_Fields...]": "string"
}
}
]
}
Payload example
{
"_records": [
{
"_fields": {
"Company": "100",
"Requisition": "3527545"
}
},
{
"_fields": {
"Company": "100",
"Requisition": "3524585"
}
},
{
"_fields": {
"Company": "150",
"Requisition": "3548684"
}
}
]
}
IPA use case:
Instead of looping on a Landmark Transaction node for individual requisitions, queue all the requisitions in a dictionary array. Use Javascript to create the API batch payload and submit approval for all the requisitions at once.