Articles tagged #WORKFLOW
Articles tagged
#WORKFLOW
Update Item Information on Sales Order Using Workflow
Scenario
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
Send Email to Multiple Recipients from a Multi-select field via Workflow
If a user retrieves the value from a multi-select field, it will be in an array.Send Email actionon the other handis similar tonlapiSendEmailAPI which states that a valid recipient it will accept should be any of the following:
Return User Error on Transaction Deletion not Working
A user wants to return a user error via workflow whenever a user tries to delete purchase orders that are not created by them.
Use a Group of Approvers in a Workflow Utilizing a Workflow Action Script
User needs toincorporatea certain group ofApprovers,SupervisorsorEmployeesto aWorkflowto handle the approval process ofa record.
Call Client Scripts from Workflow
Scenario
Below is an example to demonstrate how this is done. This requires basic SuiteScript and Workflow knowledge.
Solution
- Create a JavaScript file with the following codes:
Note:The above function will be called by the Workflow on Step 5.4.functionsayHello(s){alert('Hello '+s);/* * return true|false line is required to allow/disallow the workflow action to execute. * Condition will treat the function returned false if this line is omitted. * Thus, Workflow Action (e.g. Set Field Value) will not execute */returntrue;}
- Navigate toCustomization>Scripting>Scripts>New
- Click on the+logo beside theScript FilePopup List
- Select the JavaScript file on the File Popup Window and click onSave
- UnderDeploymentstab, add the record (Applies Tocolumn) script & workflow must be applied to (For this example,Customerrecord is used and click onSave)
- Navigate toCustomization>Workflows>Workflow>New
- Basic Information:
- Name:EnterName
Example:EnterCustomer Workflow - Record Type:SelectCustomer
- Sub Types:SelectCustomer
- Execute as Admin:EnterCheckmark
- Release Status:SelectReleased
- Name:EnterName
- Event Definition:
- On Create:EnterCheckmark
- On View or Update:EnterCheckmark
- ClickSave
- ClickState 1
- Bottom right corner:ClickNew Action
- ClickSet Field Value
- Basic Information:
- Trigger On:SelectBefore User Edit
- Event Types:SelectCreate
- Context:SelectUser Interface
- Triggering Client Fields:SelectMemo
- Condition:
- SelectFormula
- Formula:EntersayHello(nlapiGetFieldValue('companyname'))
- Triggering Client Fields:SelectMemo
- Parameters:
- Field: SelectAccount
- ClickSave
Custom Role With Full Workflow Permission Could Not See Specific Workflow
There are scenarios when a Custom Role with full Workflow permissions is not able to view a specific Workflow. A possible reason for this is that the Workflow runs on a Record Type where the Custom Role does not have permission on. This article shows how to verify if the Custom Role affected has permissions for the Record Types configured on the Workflow.
Use Display in Web Store Field as a Condition Using Workflow
Use the Display In Web Store field as a condition on a Workflow for a Return User Error Action
Create a Show Message Action on Edit Event with a Workflow
There is a requirement to add a pop up message on a record on edit mode. A Workflow can captures multiple events such as create, edit, and etc.Note:The Show Message action runs on create and edit by default. It does not have a field to specify if it should run on only create or edit.A solution would be to create a new Workflow that only contains the Show Message action.
Show Sales Order Number Pop-up Message on Item Receipt via Workflow
User wants a pop-up message that shows the transaction number of the relatedSales Orderof theItem Receipt during creation, before setting any field value.
Show a Pop-up User Message/Note When a Customer Is Selected in Sales Order
There are scenarios when a user should be notified by a pop-up message after selecting a Customer in a Sales Order transaction.
Display Record Type and Transaction Number on Email Subject by Send Email Action on Workflow
Utilize a workflow with Send Email action to inform employees about new transactions. It is requested to include Record Type and Transaction Number on Email Subject without filling it manually.
Workflow > Approve > Error: "Author Internal ID or Email Must Match an Employee"
Scenario
Solution
- Navigate toCustomization>Workflow>Workflows
- ClickEditbeside the Workflow to modify
- Locate theStatecontaining the Send Email Action
- Double-clicktheState
- ClickSend Email Action
- Condition:
- ClickOpenbeside the Condition field
- Workflow Condition:
- Field: SelectNext Approver
- Compare Type: Selectnot empty
- ClickSave
- ClickSave
- ClickDone