Add a workflow with Workflow Studio
Use Workflow Studio to build a workflow to standardize the way that the department processes requests. Configure the workflow to execute whenever a department request is submitted. This workflow will request an approval from a group of users designated as Department Request Approvers.
Avant de commencer
Role required: admin or delegated_developer
Procédure
- Navigate to All > App Engine > ServiceNow Studio.
- In the Navigator panel, expand the Table category and select the Marketing Design Request table.
- Select Flows.
- Select Add new flow.
- In the Name field, enter Marketing design request created.
- Select Show advanced options.
- In the Run as field, select System user.
- Select Continue.
- Select When the record is created for how to trigger your flow.
- Select Continue.
- Beneath the trigger, select Add a node.
- Select Action.
-
Select Update Record.
-
Select the data pill picker (
under Inputs for the Record field.
- Select Trigger – Record Created.
-
Select Record.
- In the Table field, search for and select the Marketing Design Request table.
- Select Add field value under Fields.
- Set Fields to Assigned to.
-
Set Value to David Loo.
- Select Done.
- Select Add a node.
- Select Action.
- Select AES Catalog Builder.
- Select Wait for Condition.
-
Select the data pill picker (
on the Action Properties modal, under Record.
- Select Trigger – Record Created.
-
Select Record.
- Select the Marketing Design Request table in the Table field.
- Select Edit under the Table field.
- Set the condition to [State] [is] [Design complete].
-
Select Done.
- Select Add a node.
- Select Flow Logic.
-
Select If.
-
Select the data pill picker (
next to Condition 1.
- Select Trigger – RecordCreated.
- Select Record.
- Select External.
-
Select Done.
- Select the (+) on the true branch.
- Select Action.
-
Select Ask For Approval.
-
Select the data pill picker (
next to the Record field.
- Select Trigger – Record Created.
-
Select Record.
- Select the Approve Approval Action.
-
Change to Approve or Reject.
- Select Choose approval rule.
- Change to Anyone approves or rejects.
- Select Add Group.
- Select Pick a group.
- Search for brand.
- Select Branding Dept.
-
Select Done.
- Select (+) to add FlowLogic after the approval.
- Select Flow Logic.
-
Select If.
-
Select the data pill picker (
next to Condition 1.
- Select 4 – Ask For Approval.
-
Select Approval State.
- Select Select a choice.
- Select Approved.
- Select Done.
- Select the (+) on the false branch.
- Select Action.
-
Select Update Record.
-
Select the data pill picker (
under the Inputs section, next to Record.
- Select Trigger – Record Created.
-
Select Record.
- Select Add field value under Fields.
- Select Select a field.
- Search for state.
- Select State.
- Select Select a choice.
-
Select Closed Incomplete.
- Select Done.
- Select (+) below the Action you just created.
- Select Flow Logic.
-
Select End Flow.
- Select Done.
-
Select Add a node under the If Action.
- Select Action.
- Select Update Record.
-
Select the data pill picker (
in the Inputs section, next to Record.
- Select Trigger – Record Created.
- Select Record.
- Select the Marketing Design Request table in the Table field.
- Select Add field value.
- Select Select a field.
- Search for state.
- Select State.
- Select Select a choice.
-
Select Closed Complete.
- Select Done.
- Select Save.
- Select Activate.