Change enumerator value automatically to a list of objects

0
I'm working on a project where I need to change the value of the enumerator automatically using microflow to a list of objects. I'm using the change list activity, but im unable to generate the value. And also I need to run a microflow automatically without events..Im using the Scheduled event but its not working.. Please help me out with it.
asked
2 answers
0

It is not possible to change objects in a list with the change list activity. You should create a loop that iterates over the list. Place one change object activity in the loop and change the iterator. This will change all the objects in your list. Best practice is to commit outside of the loop.

Regarding your scheduled event, when you are running locally you should activate it by checking the active checkbox within the modeler. When running in the cloud or on premises you should enable the scheduled events in your settings.

Good luck!

answered
0

The cleanest way to do this is probably through a Java action: in Java you can iterate over your enumeration and that results in the most maintainable solution.

In other projects, I've created such a solution in microflows. You can see it in this model share.

Since enumeration can only change during design time, you can run this microflow in a After Startup action: once the server has started, this list is fixed.

answered