Let me guide you on how to retrieve the previous value with the new automation block in the studio.
- Click ‘Default’ or ‘Create’ Form
- Scroll to the bottom and Click ‘Add Automation’
- Drag & Drop For block
- Link the Start to For block
- Input #Form#Items under each, input item
- Drag & Drop Condition block
- Input #item#Past Order Price == 0
- Drag & Drop Action block
- If True
- Select Find All
- Select ‘Module’
- Filter by Customer Name is #Form#Customer Name
- Drag & Drop For block
- Input #Sale List Found which is from the Action block under each, input sale
- Drag & Drop For block
- Input #sale #Items which is from the For block under each, input previousItem
- Drag & Drop Condition block
- Input Conditions that meet the current item & previous item
- if True
- Drag & Drop Action block
- Select ‘Set’
- Under Variable input #item#Past Order Price
- Under value input #previousItem#Unit Price / (PACK)
- Click ‘OK’
- Click ‘Save’