Here we introduce a key concept:
Working with lists and repeating actions for each item
This type of workflow is especially useful in:
-
Retail with multiple categories
-
Promotions by product family
-
Strategic incentives on priority categories
Workflow Objective
Multiply the points of a transaction only if it contains products from a specific category, and do it dynamically, analyzing each product individually.
Practical example:
-
If the purchase includes products from the category Electronics, multiply the points by 2
-
The rest of the products are not affected
Why this workflow is different
Unlike the previous article:
-
We do not check a single value
-
We do not assume a single global condition
Here:
-
We analyze a list of products
-
We execute logic for each item
-
We make decisions within the loop
Step 1 – Create the workflow
-
Go to Workflows
-
Create a new workflow
-
Suggested name:
“Multiplier by product category”
Step 2 – Trigger: Points Added
Select the trigger:
✅ Points Added
This trigger provides:
-
Transaction data
-
Array of products (
items) -
Categories associated with each product
Step 3 – Add a “For each item in list” loop
-
Click on Add step
-
Select For each item in list
Loop configuration
-
List:
items
This tells the workflow:
“Repeat the following steps for each product included in the transaction”
Step 4 – Add a condition within the loop
Within the For each item block:
-
Add a Condition
-
Configure:
-
Value 1:
categories -
Operator:
Contains -
Value 2: name of the target category
Example:Electronics
💡 Here the condition is evaluated product by product, not over the entire transaction.
Step 5 – Action on the True branch
In the True branch of the condition:
-
Add the action Multiply Points
-
Define the desired multiplier
Example:-
Multiplier: 2
-
This means:
-
Only the points generated by products from that category are affected
-
The rest remains intact
Step 6 – False branch (optional)
No action needs to be added in the False branch.
If the product does not belong to the category:
-
The workflow continues with the next item in the list
Step 7 – Test the workflow
Use a test transaction that contains:
-
Products from different categories
-
At least one that meets the condition
Verify that:
-
The loop executes correctly
-
Only the products from the target category receive the multiplier
-
No duplicate multipliers are applied
Final result of the workflow
This workflow allows:
-
Incentivize strategic categories
-
Create selective promotions without touching the base points system
-
Adjust the economic impact precisely
All of this without technical development and with completely visual logic.
Common mistakes to avoid
-
❌ Applying the multiplier outside the loop
-
❌ Comparing categories as plain text without using
contains -
❌ Multiplying points multiple times without control in complex flows
Real use cases
This pattern is commonly used for:
-
Double points on launches
-
Incentivizing products with higher margins
-
Pushing stock rotation
-
Temporary actions by category