1b.app
Link copied -

API request from a Business Process with the result recorded in an additional field/fields.

There was a need to get the number of the Nova Poshta branch and the city of Delivery from the online store on the CS Cart engine.
Tell me, is there a ready-made action "Add entries to the directory based on the response to the API request" https://prnt.sc/urtxam, can it be changed a little and give the opportunity to write the result not only to the directory, but also to additional fields, or is there another action that will help the API to get and write values to additional fields?
Original question is available on version: ru

Answers:

Hello, use the "Submit business process to API" action. By default, it can write values to process fields https://prnt.sc/uru3lf
02.10.2020, 14:13
Original comment available on version: ru

Can you explain which fields do what?
and it is not clear how to fill them.
at least to write the answer in the comment?
get answers like this
http://prntscr.com/urumow
but it is not clear how to write in a comment or in a field.
http://prntscr.com/uruntw
02.10.2020, 14:40
Original comment available on version: ru

https://prnt.sc/uruult try to remove the values from the fields that I crossed out
02.10.2020, 14:49
Original comment available on version: ru

http://prntscr.com/urv8i5
removed.
something works, but not as it should
http://prntscr.com/urv71g
http://prntscr.com/urv83y
can you explain these magic options?
Maybe then it will become clearer...
02.10.2020, 15:09
Original comment available on version: ru

https://prnt.sc/urwe03 uncheck this box again so that you don’t throw an error, but add an answer to the comment.
Well, it should be clear from the headings.
Prohibit switching the stage - do not allow switching to the stage, i.e. throw an error
Response code - the line works only if the specified response code has arrived
Text value - fires only if the field is equal to the specified value
Field - it is clear where to look
Check value matches - check the field for the specified value
This attribute - look at the value of the attribute in xml
Write in the field - understandable
well and so on
02.10.2020, 16:04
Original comment available on version: ru

already understand something
not quite clear yet
what is an attribute?
and what does it mean
"Update value if?"
also what does it mean
Convert comment before adding to process?
what is a comment and how to convert
and it is not clear what to do if the code 200 always goes
and "fields in JSON" can take on a bunch of values.
151,152,153,154.
we will have four lines with code 200 and each will work?
"error": {"code": 152, "message": "\u041d\u043e\u043c\u0435\u0440 \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u043e\u0439 20450279303940 \u0443\ u0435 \u0435\u0441\u0442\u044c \u0432 \u0431\u0430\u0437\u0435."}, "request_id": "3589"}
[code] => 200
and the comment should not be written "152", but the message fields should be converted into a readable form.
02.10.2020, 16:33
Original comment available on version: ru

1. This is a basic concept in xml. Please search the internet
2. Update value if. There will be a choice of conditions. Those. if the condition is met, update the field - if not, do not update
3. If the code is always 200, then look not at the code, but at the value of the error field or some other sign
4. Yes, each will work
5. So it is necessary not to write down / error, but / message so that it writes exactly the message. Now it says write error
02.10.2020, 16:37
Original comment available on version: ru

2. what field will we update? and what to compare?
5. there seems to be a path from the root to build
/error/code
/error/message
compared 152 with / error / code if it matches, then write 152 in the process field?
02.10.2020, 17:03
Original comment available on version: ru

2. Didn't understand the question
5. Well, yes, build from the root. You got it right)
02.10.2020, 17:06
Original comment available on version: ru


Bodyako Dmitry Employee wrote:
2. Update value if. There will be a choice of conditions. Those. if the condition is met, update the field - if not, do not update

2.
http://prntscr.com/us03tv
"Update value if" - what is the value?
and what field are you talking about?
and that the condition was fulfilled, arguments are needed. what do we use as arguments?
02.10.2020, 19:03
Original comment available on version: ru

https://prnt.sc/utadwt
I don't understand what arguments you are talking about
05.10.2020, 10:31
Original comment available on version: ru


Bodyako Dmitry
Employee wrote:
https://prnt.sc/utadwt
I don't understand what arguments you are talking about

I want to apologize right away if it's rude, but this is a "cry from the heart"!
I really understand Andrew. The question is not knowledge or not knowledge of HTML, but the question is UX / UI design. When all fields or values are scattered throughout the automation and it is not clear what refers to what, as in this case, for example.
01.11.2020, 22:29
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