Hi there, I will guide how to use an automation block to update entries in another module based on an action performed from another module based on table items.
Sample scenario: Confirm stock transfer to update the stock location.
Module A: Stock - keeping all the stock entries with location details.
Module B: Stock Transfer - to move the stock to the new location
Module A: Stock
- Add an activity ‘Update Location’ and add the Location field in this form design.
- will use as an internal activity to update the new location
Module B: Stock Transfer
- Configure the form design as below
- Select the products and choose the new location
-
I want the automation to trigger update location when confirming this stock transfer entry. So I will add the automation block in the confirm activity in the Stock transfer module.
-
I created an activity called ‘Confirm’ in the stock transfer module.
-
Stock transfer > Activity: Confirm > Automation
When performing Confirm , do Automation -
After executing
- Drag & drop condition block: #Entry#Details.Count > 0
Hint: Indicate when the table row is more than 0
- Drag & drop For block: #Entry#Details each item
Hint: Indicate each item lines in the table - Drag & drop Action block
- Click + Add Action
- Select ‘Find’
Module: Stock
Filter: Choose 'formula’
Choose #SerialNumber ‘equal’ #Item#SerialNumber#SerialNumber
Hint: To find the stock based on serial number
- Click + Add Action
- Select ‘Perform’
Module: Stock
Activity: Update Location
Entry: #StockFound
Form > Expand
Choose ‘Location’ : #Entry#NewLocation
Hint: To perform the update location activity based on stock found and pass the new location as location
Overall block
Result
-
Click ‘Confirm’, an entry state change to Closed in the stock transfer entry
-
Automation trigger the update location and able to pass the new location ‘ROW B’ to the 4 serial numbers found in the stock module.
#automation #block
Other related topics: