Update Item Information on Sales Order Using Workflow
Published on
January 26, 2024 at 9:04:12 AM PST January 26, 2024 at 9:04:12 AM PSTth, January 26, 2024 at 9:04:12 AM PST
Scenario
When an Item record is updated (for example: pricing, description, etc.), the updated item information is not automatically reflected on Sales Orders that were already created with the item. Thus, it is needed to manually re-add the item/s for the new Item information to be shown. To avoid this, a workflow can be created which can be executed using a button whenever needed.
Solution
- Navigate toCustomization>Workflow>Workflows>New
- Basic Information:
- Name:EnterName
Example: Auto Update Items - Record Type:SelectTransactions
- Sub Types:SelectSales Order
- Execute as Admin:EnterCheckmark
- Release Status:SelectReleased
- Name:EnterName
- Initiation:SelectEvent Based
- Event Definition:
- On Create:EnterCheckmark
- On View or Update:EnterCheckmark
- Trigger Type:Select-All-
- ClickSave
- ClickNew State
- ClickState 1
- Lower Right Corner:ClickNew Action
- ClickAdd Button
- Parameters:
- Label:EnterLabel
Example: Update Item - Save Record First:EnterCheckmark
- Label:EnterLabel
- ClickSave
- Double-clickState 1
- ClickTransitions
- ClickNew Transition
- Basic Information:
- To:SelectState 2
- Condition:
- Execute on Button:SelectUpdate Item
- ClickSave
- Double-clickState 2
- ClickNew Sublist Action
- Parameters:
- Sublist:SelectItems
- ClickSave
- ClickSublist Action Group
- ClickNew Action
- ClickSet Field Value
- Parameters:
- Field:SelectItem (Line)
- Value:SelectFrom Field
- Record (Join):SelectCurrent Record
- Field: SelectItem (Line)
- ClickSave