How to Correctly Create an Object in the Prop to Pass to the Zoom Action in a Workflow from Squarespace to Zoom?

This topic was automatically generated from Slack. You can find the original thread here.

Hi. I’m trying to build a workflow like this: when I have a new customer added in Squarespace, that customer’s email is used to create a Zoom account. Everything is going fine with the Squarespace trigger, but I’m not able to create the Zoom account. The Zoom action is a Prop asking for an object. I’m trying to pass the object to the Zoom action. I’m a newbie and I’m not sure how to correctly make the object in the Prop to pass to the Zoom action. I keep getting the same error, SyntaxError
Unexpected token o in JSON at position 1". Any assistance is greatly appreciated! :slight_smile:

That is a pretty confusing action configuration it looks like! Can you expand the User_info prop? Based on the Input at the bottom of that screenshot, it looks like the step reference is getting evaluated literally (as “steps.trigger.event.customerEmail” instead of as the actually email address).

Here is the User_info prop expanded. I’ve tried all different ways of creating the object but here is a screenshot of my latest attempt.

Here is another screenshot of me trying to pass the object another way.

Ah that’s the issue. You ran into somewhat of a niche edge case. Custom expressions are not currently evaluated in the key input for object props, so you’ll need to construct the object manually and select the “Enter a custom expression option” or in a previous step, which is what I’d recommend.

You could do something like this

Oh, actually in my code you’d want to change it to steps.trigger.event.customerEmail I believe

So then you’d enter steps.user_object.$return_value in the user_info prop, after you select “Enter custom expression”.