on 05-13-2020 5:16 PM
antoniuspj04
All MDK actions have an OnSuccess and OnFailure handler properties. The OnSuccess property is used to chain together multiple actions.
You can call CreateEntity action to create SalesOrders. As Items is child of SalesOrders, you can use CreateRelatedEntity action to create related Items. You can simply set the OnSuccess for the CreateSalesOrder to call CreateItems.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi jitendrakumar.kansal,
for creating an entity "Order" with child "OrderLines", we tried that approach, too. At first, we created the order entity and after that, with "OnSuccess", we chained the entity creation of the child with "CreateRelatedEntity" action.
However, after creation, after we synchronized the data towards the backend, the entities have been sent in two separate POST-requests and therefore, an error occurred, because the created entities could not be created in the backend. We assume, that the linkage between the two posts we sent to the backend cannot be done correctly.
Do you have any idea, how we can overcome this problem?
Thank you in advance and best regards,
Sher-Chan
User | Count |
---|---|
72 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.