Split up trigger data in Zaps
- Tables
-
Product updates
Product updates: January 2023 Product updates: March 2023 Product updates: February 2023 Product updates: April 2023 Product updates: May 2023 Product updates: June 2023 Product updates: July 2023 Product updates: August 2023 Product updates: September 2023 Product updates: October 2023 Product updates: November 2023 Product updates: December 2023 Product updates: January 2024 Product updates: February 2024 Product updates: March 2024 Product updates: April 2024 Product updates: May 2024 Product updates: June 2024 Product updates: July 2024 Product updates: August 2024 Product updates: September 2024 Product updates: October 2024 Product updates: November 2024 Product updates: December 2024 Product updates: January 2025 Product updates: February 2025 Product updates: March 2025 Product updates: April 2025 Product updates: May 2025 Product updates: June 2025 Product updates: July 2025 Product updates: August 2025
- Zaps
- Your Zapier account
- Interfaces
- Canvas
- Chatbots
- Getting started
- Agents
- MCP
- Built-in tools
- Lead Router
- Apps
Table of Contents
If your trigger data has a block of text that you need to split up, you can use named variables to separate the data. When you use named variable syntax, Zapier will reformat your trigger data as separate fields (variables) and their corresponding values. You can then map your named variables to later action steps in your Zap.
1. Edit data sent by the trigger app
To use named variables in Zaps, you must format your data so the Zap will recognize each separate variable and it’s value. Use the syntax named_variable(value)
:
- Remove any spaces from the name of your variable.
- Wrap the variable value in parentheses.
- Variable values can have any character, including spaces.
If your variable name has spaces (e.g. between words), you can add underscores between words (e.g. first_name) or capitalize the first letter of each word (FirstName) to make it easier to read.
2. Check your named variables
- Test your trigger.
- Your original, unformatted text will appear, as well as your named variables and their values.

If you send a customer’s contact information in the body of your email, you can use named variables to separate each piece of contact information into its own variable. If your original data is:
First Name Philip Last Name Fry Email Address philip.j.fry@planetexpress.net Phone Number 123-456-7890
Reformat it in your app as:
FirstName(Philip) LastName(Fry) EmailAddress(philip.j.fry@planetexpress.net) PhoneNumber(123-456-7890)
When you test your trigger, you'll see both the email body with the named variables syntax as well as each individual named variable and its value.
Limitations
- You must be able to format the trigger data before it’s sent to your Zap.
- If this data is automatically generated, you’ll need to use a Formatter step to modify that data instead.
- Named variables can only contain letters, numbers, or underscores.