CSA - ServiceNow System Administrator Flow Designer and Automation Questions and Answers 1 — Questions and Answers
Question 1: An HR manager wants to automate part of the new hire onboarding process. When a new user record is created with the 'Department' set to 'IT', a standard laptop and monitor should be automatically requested from the Service Catalog. Which Flow Designer component should be used to initiate this automation?
- An Action
- A Trigger (Correct answer)
- A Subflow
- A Data Pill
Correct answer: A Trigger
Triggers are the starting point for any flow and define the specific conditions under which the flow will execute. In this scenario, a record-based trigger ('Record Created') on the User [sys_user] table with a condition ('Department' is 'IT') is the correct component to start the automation. Actions are the individual steps within a flow, Subflows are reusable sequences of actions, and Data Pills are variables.
Question 2: In Flow Designer, which component represents output variables from triggers and actions that can be dragged and dropped into the inputs of later actions to pass data dynamically through the flow?
- Spoke
- Connection Alias
- Flow Logic
- Data Pill (Correct answer)
Correct answer: Data Pill
Data Pills are the visual representation of variables within Flow Designer. They hold the output data from triggers (like the fields from a newly created record) and actions (like the incident number from a 'Create Record' action). These pills can then be used to populate the input fields of subsequent actions.
Question 3: A developer needs to build a sequence of actions to check a user's location and route a task to the appropriate regional support group. This logic will be needed in several different flows, including incident management and request fulfillment. What is the BEST practice for creating this reusable automation in Flow Designer?
- Create a Subflow containing the location check and routing actions. (Correct answer)
- Copy the required actions and paste them into each individual flow.
- Build a separate, complete flow for each business process that requires it.
- Create a custom Action that contains all the required scripted logic.
Correct answer: Create a Subflow containing the location check and routing actions.
Subflows are designed specifically to contain a reusable sequence of actions that can be called from multiple flows. This approach is the most efficient and maintainable, as the logic only needs to be built and updated in one place. Copying actions creates redundancy, and while a custom action could work, a Subflow is better suited for a multi-step process.
Question 4: A system administrator is building a flow to automate a change request process. The flow must pause and wait for the assigned CAB (Change Advisory Board) group to approve the change before creating the implementation tasks. Which core action should be used to manage this approval requirement?
- The 'Wait for a duration of time' flow logic.
- The 'Ask for Approval' action. (Correct answer)
- The 'Create Record' action on the Approval [sysapproval_approver] table.
- The 'If' flow logic to check the change request state.
Correct answer: The 'Ask for Approval' action.
The 'Ask for Approval' is a specific, out-of-the-box core action designed to generate approval records, assign them to users or groups, and pause the flow until a decision is made. While one could manually create an approval record, this action encapsulates the entire process, including waiting for the outcome, which is the most direct and reliable method.
Question 5: What is the primary function of a 'Spoke' in Flow Designer, particularly when used with IntegrationHub?
- To define the trigger conditions that start a flow.
- To store credentials and connection details for external systems.
- To provide a packaged set of related actions for a specific application or integration. (Correct answer)
- To represent a single, reusable piece of logic, like an approval.
Correct answer: To provide a packaged set of related actions for a specific application or integration.
A Spoke is a scoped application that provides a logical grouping of related actions and subflows for a specific application or third-party service (e.g., Slack, Microsoft Teams, Jira). Spokes make it easier to build flows that interact with external systems by providing pre-built, reusable components for common operations.
Question 6: A flow is designed to process new hardware requests. If the request is for a laptop, it needs to be routed to the Hardware team. If the request is for a mobile phone, it needs to be routed to the Telecom team. Otherwise, it should be sent to the general IT queue. Which Flow Logic element is used to create these different paths for the flow to follow?
- For Each
- Do the following in Parallel
- Wait for Condition
- If (Correct answer)
Correct answer: If
The 'If' flow logic is used to introduce conditional branching into a flow. It evaluates a condition, and if it's true, it executes a specific set of actions. It can be combined with 'Else If' and 'Else' blocks to create multiple execution paths based on different data values, which is exactly what is required in this scenario.
An HR manager wants to automate part of the new hire onboarding process.
When a new user record is created with the 'Department' set to 'IT', a standard laptop and monitor should be automatically requested from the Service Catalog.
Which Flow Designer component should be used to initiate this automation?