1b.app
Link copied -

response processing in the "Submit business process to API" action

Hello! The "Submit business process to API" action is configured in the procedure that sends an http request to the API and receives an array of data in JSON format. You need to configure so that the action updates the values of the add. process product fields. JSON response example:
[
{
"box_productID": "417",
"productName": "OIL FILTER",
"price": 19.34,
"weightInKG": 1.05,
"quantityInStock": 8
},
{
"box_productID": "122",
"productName": "Light bulb",
price: 5.96
"weightInKG": 0.016,
"quantityInStock": 1
}
]
When JSON contains data for only one product, then everything is updated, and when the response is an array of data for several products, then it does not work.
Can you please tell me how to set up response processing in this action?
Original question is available on version: ru

Answers:

Box address - flexservice.1b.app
25.08.2022, 14:28
Original comment available on version: ru

Hello
Apparently, you have specified the wrong path to the array of products and / or to the field that must be filled in for the product of the process
29.08.2022, 16:56
Original comment available on version: ru

Hello! I tried to specify the path in different ways. Does not work.
29.08.2022, 17:12
Original comment available on version: ru

Understood. Thanks a lot!
29.08.2022, 21:06
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment