
Partner - Contributor II
2024-06-26
03:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Loop and reduce
Good afternoon, is there a way to reduce an application from a condition.
For example, reduce the sales application by the country field where country is equal to Argentina and Chile.
Use the Loop and reduce block. But I don't know how to add a condition to filter by two countries.
Thank you.-
2 Replies

Support
2024-06-28
05:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @rbarboza
What if you do the following:
1. Loop And Reduce the app using the "Loop And Reduce" block
2. Inside the loop use a "Condition" block
3. Have the Condition block setup as follows:
If reduced values equals to Argentina and If reduced values equals Chile
4. if the expression in point 3 is true, use the "Publish Reduced App To Managed Space"
Please note i think this wont stop the loop from looping through all field values.
A better way might be to store these two countries in an array and each time the condition is true, pop off one of the countries from the array, when the array is clear use a stop block to maybe stope the automation
448 Views

Partner - Contributor II
2024-07-01
03:17 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much. From what I understand, the result would be two applications, one with each country filtered. And what I'm looking for is a single application with the two countries filtered.
425 Views
