In a custom object, I have a list of contact objects. On a specific signal, I need to loop over these contacts and change the attributes of each contact based on other attributes found in the contact object. How can I achieve the for loop with a business process?
If the only way is to use the Scripts element, where can I find proper documentation to start using Scripts in Creatio?
The best way to create a Business Process with a for loop you would need to create a sub-process:
Signal "Contact Added" element:
Read Data "Read Contact" element:
For the sub-process, you would need to specify the [Parameters] of it:
And make a filter of the element within the sub-process based on the ID:
And finally, you would need to specify this parameter in the parent Business Process:
This is it. The business process here would trigger upon a Contact being added, then it would fetch 50 top Contacts in the system and transfer them to the sub-process, which will do some required magic within it, and then would end.
You may customize this example in any way you would like.
The best way to create a Business Process with a for loop you would need to create a sub-process:
Signal "Contact Added" element:
Read Data "Read Contact" element:
For the sub-process, you would need to specify the [Parameters] of it:
And make a filter of the element within the sub-process based on the ID:
And finally, you would need to specify this parameter in the parent Business Process:
This is it. The business process here would trigger upon a Contact being added, then it would fetch 50 top Contacts in the system and transfer them to the sub-process, which will do some required magic within it, and then would end.
You may customize this example in any way you would like.