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.
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.
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.
If your original data is:
First Name Philip Last Name Fry Email Address firstname.lastname@example.org Phone Number 123-456-7890
Reformat it in your app as:
FirstName(Philip) LastName(Fry) EmailAddress(email@example.com) PhoneNumber(123-456-7890)
Named variables can only contain letters, numbers, or underscores.
2. Check your named variables
- Test your trigger.
- Your named variables will appear as separate fields.
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.