The goal is:
- to create new target JSON from a source JSON.
- condition is only that only the bundle must be contained, which should be present in the array states, state with the value “DELIVERED”.
- target JSON should only contain the fields salesOrderId and salesOrderPositionItemId.
What is the best way to implement this?
Directly in the variable does not work with map() to implement the condition from point 2.
Example.json (22.4 KB)
Many thanks in advance!
Welcome to the Make community!
Please provide the output bundles of the “GET Return Shipments” module by running the scenario, then click the white speech bubble on the top-right of each module, save the contents as a text file
.json, and upload it here into this discussion thread:
Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.
Please also provide a sample of the output JSON you want to achieve.
Following these steps will allow others to assist you here. Thanks!
You need a total of four modules
blueprint.json (29.3 KB)