If you are using the Tolstoy X Zapier integration, there are certain fields that you may want to extract that are not available using the regular zap settings. Follow this guide below to learn how to extract custom fields using advanced configuration.
*Requires a Premium Zapier account.
Begin setting up the Zap Trigger from Tolstoy:
Add a new Action and select Format.
Choose Utilities.
Under Set up action, select Line-item to Text.
Make sure you gave names to all your Tolstoy parts!
In the Input, open the drop down menu. First select "Events Question", then "-", then "Events Event Name", then "***", and then add the "Events Text".
In the Separator field write "|||", and click Test and Continue, like so:
Close the section and add a new action. Search for the Code by Zapier app.
In the Input Data, type text, and then select the Output Text from the Utilities.
In the code section type the following code:
const text = inputData.text.split('|||');
let obj = {};
text.forEach((element) => {
const [name, value] = element.split('***');
obj[name] = value;
});
output = [obj];
Click Continue and Test and Continue. Now you will have the part name, the event name and the text value that was entered.
You can easily choose the desired value and match it to the wanted field in Zapier!
Do not hesitate to contact us at support@gotolstoy.com if you have any more questions.
*based on this article by Zapier.