1b.app
Link copied -

API product updates

Test process https://mariemur.crm-onebox.com/admin/customorder/order/8102/edit/
Stage https://mariemur.crm-onebox.com/admin/shop/workflowstatus/86/action/new/
There is an action that, upon saving, sends a request to the api "Submit the business process to the API"
In this process, 3 products come in response and update them, if not, add them to the process
Enabled the setting "Delete non-updated products." https://prnt.sc/vocy2h
Added 4 products to the process (1 extra), api gives 3
I need 1 extra product that has not been updated - to be deleted.
But it does not work, the extra product is not removed. Tell me how to remove a product that has not been updated by API? The action will then work once an hour (and not when saving or switching to a stage)
Original question is available on version: ru https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор

Answers:

Look, there is a question mark next to this checkbox - hover over it and a description of how this checkbox works will appear.
In short, then:
in the order 2 items of product XXX, and 3 items of YYY
after sending the request, 1 product has been updated XXX
if this checkbox is checked, then 1 more position XXX will be found in the process and deleted, because position XXX has already been updated in this query. And YYY products will not be deleted. they were not updated in this query
And now you get the same situation - those products that did not come to update after such a request were not deleted
By the way, you can refresh your memory and see the task for which this setting was added https://box.webproduction.ua/admin/customorder/issue/2015002152/edit/
23.11.2020, 16:12
Original comment available on version: ru


Maria
Employee wrote:
Look, there is a question mark next to this checkbox - hover over it and a description of how this checkbox works will appear.
In short, then:
in the order 2 items of product XXX, and 3 items of YYY
after sending the request, 1 product has been updated XXX
if this checkbox is checked, then 1 more position XXX will be found in the process and deleted, because position XXX has already been updated in this query. And YYY products will not be deleted. they were not updated in this query
And now you get the same situation - those products that did not come to update after such a request were not deleted
By the way, you can refresh your memory and see the task for which this setting was added https://box.webproduction.ua/admin/customorder/issue/2015002152/edit/

Yes, I remembered why they did it, but I still need as I described, I have 4 different products in the process, the api gives 3 - that means 1 extra one that the api did not give away - delete. So it can be improved or somehow adjusted?
23.11.2020, 16:15
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Original comment available on version: ru


Korop Vladislav Pavlovich
Employee wrote:
Yes, I remembered why they did it, but I still need as I described, I have 4 different products in the process, the api gives 3 - that means 1 extra one that the api did not give away - delete. So it can be improved or somehow adjusted?

yes you can, 1h - will delete all products except those that were updated / added after processing this request
23.11.2020, 16:19
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