---
schema_version: "1"
id: 2ddf3bcb5943d8b4e2cc6ac4139cd13f5c43e7689d42359893b927736b67a84d
title: About Flow Variables
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/about_flow_variables.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.about_flow_variables.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 81b3d7e9105a3e2316355d885f867c027e05cebb5b55aac7435725beff12bd18
description: "Create the following variables to store values in your flow: recordId, skillList, prechat, and input_record. RecordId is required. SkillList, prechat, and input_record are optional based on your flow logic."
products:
  - Service Cloud
release: "264"
---
# About Flow Variables

Create the following variables to store values in your flow: recordId, skillList, prechat, and input\_record. RecordId is required. SkillList, prechat, and input\_record are optional based on your flow logic.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=service.service_editions_reference.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

![Flow variables input\_record, skillList and recordId.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support-264-0-0-production-enus/dd14551c-a772-4db6-9a1d-d84df8df2980/support/images/omnichannel/omnichannel_flow_variables.png)

- **[Create the recordId](https://help.salesforce.com/s/articleView?id=service.omnichannel_create_recordid.htm&release=264.0.0&type=5)**  
    To store the ID of the work item in the flow, create the recordId variable.
- **[Create the skillList](https://help.salesforce.com/s/articleView?id=service.omnichannel_create_skilllist.htm&release=264.0.0&type=5)**  
    To route work to service reps with the right skills, identify the required skills and store them in a record collection variable.
- **[Create the prechat](https://help.salesforce.com/s/articleView?id=service.omnichannel_create_variable_prechat.htm&release=264.0.0&type=5)**  
    To build a flow that routes chats based on information captured in a pre-chat form, add a prechat record collection variable. Set up the variable to pull pre-chat details from the Conversation Context Entry object.
- **[Create the input\_record](https://help.salesforce.com/s/articleView?id=service.omnichannel_create_input_record.htm&release=264.0.0&type=5)**  
    If you build a flow to route work based on field values in a Salesforce record, use a record variable to store the record.
- **[Create the reasonForNotRouting](https://help.salesforce.com/s/articleView?id=service.omnichannel_create_reasonfornotrouting.htm&release=264.0.0&type=5)**  
    To explain why a flow can’t route a work item, create the reasonForNotRouting variable. You can use this variable in a Messaging for In-App and Web channel to return a reason why the flow can’t route a messaging request.