1b.app
Link copied -

Action "Send process to API" - pass value 0

Good afternoon
In the action "Send process to API" https://univer.1b.app/admin/shop/workflowstatus/1163/action/new/
when the parameter "state" = 0, it is not sent to the server.
And when the value in the "state" parameter is -1 or 1, JSON Data is transmitted to the server correctly.
Transfer examples:
1. When passing the parameter "state" = 0
Data: { "idCode": "296",
"status": "1",
"type": "full",
}
2. When passing the "state" parameter as an additional field with a default value of 0, the parameter appears in the output with an empty value
{"idCode":"296",
"state":"",
"status":"1",
"type":"full",
}
Tell me how to pass the parameter value - 0?
Original question is available on version: ru Інтегратор CRM+ERP. Компания Olmonic

Answers:

you need to finish the transmission setting 0 as a line so that it is not empty 1h
21.11.2023, 18:00
Original comment available on version: ru

Olmonic Olmonic
Інтегратор OneBox
Personal license

Ustimenko Igor
OneBox production wrote:
you need to finish the transmission setting 0 as a line so that it is not empty 1h

Can I count on Pyatetsky Nikolay Nikolaevich
21.11.2023, 19:07
Інтегратор CRM+ERP. Компания Olmonic Original comment available on version: ru


Good afternoon.
The logic of the action has been changed - now you can pass 0 as the value of an additional parameter.
01.12.2023, 16:21
Original comment available on version: ru

Olmonic Olmonic
Інтегратор OneBox
Personal license

Tyndyk Maxim Vadimovich
OneBox production wrote:
Good afternoon.
The logic of the action has been changed - now you can pass 0 as the value of an additional parameter.

Everything is working.
Thanks a lot!
04.12.2023, 09:37
Інтегратор CRM+ERP. Компания Olmonic 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