Loading
Help

Split up trigger data in Zaps

Last updated:

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, your trigger data will be formatted as separate fields that you can use in later steps in your Zap.

Example

If you send a customer’s contact information in an email body field, you can use named variables to separate each piece of contact information into its own field.

Note

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.


1. Edit data sent by the trigger app

To use named variables in Zaps, you need to apply some specific formatting, so that the Zap can recognize the different fields (also called variables).

  • Remove any spaces from the new field name. You can make the name easier to read by adding underscores or capitalizing the first letter of each word.
  • Enter the field value in parentheses directly after the variable name.
Example

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)
Note

Named variables can only contain letters, numbers, or underscores.


2. Check your named variables

When you add another action to your Zap, you’ll be able to use the data from the individual fields that were created with the named variables.


Need More Help?

Contact Support

Tell us about your problem, and we’ll find you a solution or you can email support.
Get Help

Hire an Expert

We have a directory of professionals across the globe who are ready to help.
Find a Zapier Expert

Zapier Community

Connect with other Zapier users and industry professionals to get help crafting the perfect workflow.
Check out the community

Zapier University

Video courses designed to help you become a better Zapier user, whether you’re a beginner or more experienced.
View courses