You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Payload input in FOR loop getting rearranged

Summary:

I am creating a workflow agent to create multiple transfer orders based on Excel file input. The file is being read successfully and the Payload in generated as expected.

But when the JSON array is passed in the FOR loop, the payload columns are getting rearranged, and the transfer order creation fails.

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):

Input payload to FOR loop

{"ProcessRequestFlag":"Y","InterfaceBatchNumber":"2906202603","InterfaceSourceCode":"DOS","SupplyOrderReferenceId":1,"SupplyRequestStatus":"NEW","SupplyOrderSource":"INV","supplyRequestLines":[{"DestinationTypeCode":"INVENTORY","InterfaceBatchNumber":"2906202603","Quantity":1,"PreparerEmail":"XXXX","SupplyOrderReferenceLineNumber":"1","SupplyOrderSource":"INV","DestinationOrganizationCode":"002","SupplyOrderReferenceLineId":1,"SupplyOperation":"CREATE","ItemNumber":"MP_AGENT_ITEM","NeedByDate":"2026-06-30T00:00:01","SourceOrganizationCode":"001","SupplyType":"TRANSFER","InterfaceSourceCode":"DOS","DestinationSubinventoryCode":"Completed","UOMName":"Ea","DeliverToRequesterEmail":"XXXX","UOMCode":"zzu","SourceSubinventoryCode":"Completed"}],"SupplyOrderReferenceNumber":"2906202603","SupplyRequestDate":"2026-06-30T00:00:01"}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!