Skip to main content

Hello Every One, 

 

We are getting data from a temporary table,

Those data like customer_no, order_type will be used to create a customer order header then lines

 

 

We are having two issues:

 

First, the flag that determines that the line has been treated is not updating.

In case of multiple line on entry, the second customer order is not creating.

 

 

 

The Flag  is not updating

 

 

Am I calling the Objkey in a wrong way?

 

 

 

Second issue we are having is when having multiple data

First header is created but when looping the second value :

 

 

Any idea please?

Your help would be apretiated.

In your first read both “Read Collection” and “Override Etag” flags are set. They don’t work together. When you select “Read Collection” results are returned as an array. I think the Etag you’re getting from there is not the one you’re expecting.

If you’re using the Etag from above first read api task for your “Update created header flag” api task, then it will fail. 

You can do one below the below to get the correct Etag

  1. Use the same Etag from “Create customer order header” for your “Update created header flag”
  2. Add a read api task just before “Update created header flag” and use that tasks Etag for your “Update created header flag”. Make sure you read the exact record you created. You can do that by providing keys of the entity you’re referring to. If you provide something other than the keys and not use “Read collection”, then API task will return top 1 of the data filtered by the provided parameters.

Also I hope the extra workflow triggered by “Create customer order header” is not affecting the outcome you’re expecting.


Reply