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, your trigger data must use camel case and be formatted as separate variables.

  • Remove any spaces from the variable name and capitalize the first letter of each word.
  • Enter the variable 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

It needs to be reformatted 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