Programmatically add/remove items ordered from a bundle
Suppose I have a bundle in Front Office and I have a proces where I can order items from this bundle. I then get these items in my basket. So far so good.
Now I would like to programmatically add or remove items to or from this basket. Is that possible through the API and how do I do that. I cann't seem to find it in the SDK documentation.
So: My basket contains items A, B and C. Now I want to remove item B from the basket programmatically. How canI do that?
-
Official comment
Hi Pim,
Thanks for your query. What happens if you add part with a quantity of 0?Ben
-
Update: I found an "AddPart" method which seems to for adding items to my basket but I cannot find the counterpart: "RemotePart" nmethod.
0 -
Ben,
I tried to add a part with quantity 0 but unfortunately that seems not t be allowd:
Exception calling "AddPart" with "4" argument(s): "can not add a part with quantity '0' in requestId '19174'"
This is quite an issue for me as I need to be able to clear parts from the shopping list when requesters appear not to be allowed to order them. Is there some other way to get that done?
0 -
Hi Pim,
Unfortunately, there are currently no basket-related API calls we can leverage here. We are reviewing what additional API methods we can add to Front Office and will add basket operations to the list.In the meantime, I will contact you directly to discuss possible workarounds for your specific requirement.
Regards,
Ben0
Please sign in to leave a comment.
Comments
4 comments