Ok, so this may be a little more advanced but…
Context:
I host a weekly livestream that, if people want to attend, they get a “ticket” by entering their email through Modern Events Calendar.
For the longest time, I’ve had a zap that ran that would add them to a specific email list in convertkit.
This has worked… fine, but it doesn’t allow me to know email members have come in from what episode, so segmenting later on has become quite difficult.
So… after some fiddling, I found a way to auto-create a tag in convertkit when an event is created.
Now, I want to also add that tag to an individual subscriber when they sign up for the event.
As far as I can tell - the best way to do this is to have a search run through the tags, then somehow isolate the tag id from the string so it can then be added to the subscriber’s record.
For example, :
{"id":4967517,"name":"How to Calculate The ROI of Content Marketing","created_at":"2024-04-25T16:44:35.000Z"},
Whatever the query is, it would take the event name “How to Calculate The ROI of Content Marketing” which is automatically pulled in from a different step, then backtrack to the “id””4967517 and get the rest.
I suspect this could be done with the Code by Zapier step and use Javascript to sort everything out, but I dont’ know enough Javascript to get this done.
Any thoughts?
Hi
One approach would be to maintain a lookup table:
Or options for using app APIs in Zaps:
Code step can be used to do the filtering to find a match.
Code: https://zapier.com/apps/code/help
ConvertKit API: https://developers.convertkit.com/#list-tags
Hey!
Thanks
I did manage to get the tags to list out from ConvertKit’s API (which I was quite proud of myself for) so now it’s just a matter of somehow finding the tag name “How to Calculate The ROI of Content Marketing” then isolating the tag id that comes from before it.
The code step is 100% the way to go to get it to parse out. I just don’t know the code to do it.
But what it would be pulling from is {"id":4967517,"name":"How to Calculate The ROI of Content Marketing","created_at":"2024-04-25T16:44:35.000Z"},
I know it can be done, I just don’t know the specific code I would use to get each of those elements on their own individual lines.
Try using the AI Code generator in the Zap Code step: https://help.zapier.com/hc/en-us/articles/15666688064013-Generate-a-Code-step-using-AI-Beta
Or you can try asking ChatGPT for help with the Code.
Or you can consider hiring help from a Certified Zapier Expert: https://zapier.com/experts
Hey
Hi there
Super kind of you to help out
Can you also share that example publicly in the thread here instead of using private messages?
That way the rest of the Community can benefit from any potential solutions shared in the thread here. Thanks!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.