Skip to main content

Hello,

I’m building workflow that requier to delate all elements in StepItemArray Entity (StepItemHandling API Name).

In first step I’m calling READ API function on all StepItemArray, so I have list of elements with eTag and StepItemId.

 

In the loop i would like to iterate throu all elements in my list and call DELATE function on StepItemArray API.

 

I have three issues:

First issue is that I don’t know what i should provide in collection to multi-instance element:

I was trying to figure it out with the help of provided by IFS example (LoopJsonBlockExample) but it doesn't work.

 

Second issue is what variable name should I provide in my delete function

 

Third issue is that if eTag will work as it should in this configuration.

 

How should I properly build such a workflow.

That JSON example is terrible.  Install this one: https://docs.ifs.com/techdocs/24r1/040_tailoring/500_business_process_automation/030_getting_started_with_workflows/resources/loopingDemo.bpmn

 

I have a requirement to update the customer no on all tasks when a work order customer is changed.

First set the collection:

Then set the collection on the loop:

 

Then you can just refer to the variable.  Make sure you do a fetch of the record first before performing the update or delete.

Hope this helps!


Reply