What is your goal?
I’m trying to pull data from a google calendar event. I’m trying to get the name that is part of the title, a phone number in the event description, and the client email address that is one of three emails that is in the guests (aka attendees) section of the event.
Then sending an email based on that information and logging it in a spreadsheet.
What is the problem?
My scenario runs, but does not properly Identify the variables of client’s name, email, and phone number.
What have you tried so far?
At first I tried simply running the google calendar trigger to a set multiple variables module, and have that module identify each piece of information with some code, but I don’t know code very strongly and rely heavily on chatgpt. It keeps suggesting code that doesn’t really work with make. Heres the examples of that:
for email:
first(map(filter({{1.attendees}}; organizer != true and email != “fakeemail@gmail.com”);email))
for name:
{{first(split(1.summary; “”“-”“”))}}
for phone:
match({{1.description}}; “(+?1[\s.-]?)?(?\d{3})?[\s.-]?\d{3}[\s.-]?\d{4}”)
But these didn’t work! I tried to identify which bits of code don’t work with Make but kept going in circles with chatgpt trying to figure it out.
So my next attempt has been running 1.attendees through an iterator and running a text parser to find the phone number in the description and It just doesn’t work for me for reasons unknown. Please help, I’m hitting a wall.