--- title: Create a Data Definition description: Use data definitions to collect and use pieces of information later in a playbook. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/build-workflows/workflow-studio/create-data-definition.html release: australia product: Workflow Studio classification: workflow-studio topic_type: task last_updated: "2026-03-12" reading_time_minutes: 3 breadcrumb: [Administering Playbooks, Configure, Playbooks, Workflow Studio, Build workflows] --- # Create a Data Definition Use data definitions to collect and use pieces of information later in a playbook. ## Before you begin **Important:** As of the 26.1 release, the **Collect user data** activity is no longer available in the activity picker. The activity will continue to function wherever it is used, but for new activities use the **Questionnaire** activity instead. The **Questionnaire** activity does not require you to create a data definition. To learn more about the **Questionnaire** activity, see [Questionnaire activity](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/questionnaire-activity.md). Role required: admin, flow\_designer You will be working in the ServiceNow AI Platform to complete this task. ## About this task A data definition is the information that you want an agent or fulfiller to collect during a playbook run, and is the key input of the **Collect user data** activity. Playbook authors define the data they want an agent or fulfiller to collect in the `sys_flow_data_definition` table. When an agent or fulfiller collects the information, the information is stored in the `sys_flow_data` table for use later during the playbook run, instead of in the record table. Only use a data definition if: - The data is only needed downstream during a single playbook run. It's collected, used, and never needed again. - You don't need to run any reports on the collected data. If you need any metrics or reports on the collected data, create a table and use the [User Form activity](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/user-form-activity.md) instead. For example, you may have multiple teams that perform activities. One team enters the inputs for a created data definition when they perform a **Collect user data** activity, and then a second team uses the collected inputs to complete the playbook, and the information is not needed afterwards. ## Procedure 1. Navigate to **All** > **Process Automation** > **Process Automation Administration** > **Data Definitions**. 2. Select **New** to create a new data definition. 3. Give your new data definition a name. **Note:** Data definitions have the same scope as other metadata tables, by default. 4. Right-click in the record header to **Save**. If you select the **Submit** button, you are taken back to the **Data Definitions** list and will need to select your new data definition to re-open it. 5. Add fields for information that you want an agent to collect. 1. In the **Flow Data Variables** table, select **New**. 2. Enter the required fields.
**Type** The type of input the agent is collecting for a field. For example, string, reference, integer, etc.
**Label** The label of the field in the UI, during the playbook run. The label can consist of any text.
**Column name** The name of the input being collected. Spaces cannot be used to delimit words.
**Max Length** The maximum length a string value can be entered for a string type of field. The variable can store longer strings than it can display.
**Application** The application scope for the data variable. It is always set to Global, and cannot be changed.
6. Optional configurations 7. Under the **Default Value** tab, specify the value used when a playbook does not provide a value. 8. Right-click in the record header to **Save**. 9. Under the **Choice List Specification** tab, use the **Choice** field to present options as a choice list to agents, or to add choices to a field of List type. This tab only appears when you select an applicable **Type**. **Note:** In **Advanced view**, an additional **Choice table** field displays. 10. Advanced view 11. Select **Advanced view** under **Related Links** to configure more fields. ## Result The data definition can now be used when configuring activities in Playbooks in Workflow Studio. ## Example During a playbook run, you can use data definitions to potentially: - Collect a shipping address, then reference the address when generating a shipping label. - Ask the user "yes" or "no" questions, and determine subsequent activities based on the user's responses. ## What to do next Per Yaron/Bim, add a topic on defining a form view for your data definition and link down here. Jay Wang is creating draft in sharepoint. Configure a [**Collect user data** activity](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/collect-user-data-activity.md) in Workflow Studio Playbooks to use your new data definition. **Parent Topic:**[Administering Playbooks](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/administering-process-automation-designer.md)