I'm in the process of creating a Zap that collects customer feedback through Unbird and delivers a coherent Slack message that can be easily understood by anyone within my organization.
When importing customer feedback data from Unbird into Zapier, it appears in a format resembling a JavaScript object:
{
0: website
1: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2e4441406e4b4345">[email protected]</a>
2: Jon
3: Smith
4: You guys have a great website, but should add dark mode.
}
The desired Slack message format would look something like this:
Jon Smith (<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d3b9bcbd93b6befdb4be">[email protected]</a>) just sent you Website feedback: You guys have a great website, but should add dark mode.
After attempting to send the "entry property values" to Slack, the content appeared as follows:
website, <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="375d585977525519592c585a">[email protected]</a>, Jon, Smith, You guys have a great website, but should add dark mode.
I experimented with Zapier's Split function using a comma as the separator, but encountered issues with successful splitting. Furthermore, I tried utilizing a Zapier code snippet to isolate specific values, such as myobj.0, which did not yield results. Perhaps this is an array? I recall that numeric key names are not typically used in JavaScript. It has been quite some time since I last engaged with coding.
In an attempt to convert it into a string format, I employed JSON.stringify, only to face constraints as the output had to remain as an object in Zapier code snippets. Consequently, I find myself stuck dealing with objects when all I desire is text or a method to access individual values within the object for future reference.
Assistance needed!