How do I reference a field that's not in my sample data?

:bullseye: What is your goal?

I am pulling data from Google Calendars and I want to exclude certain types of events. For example, if an event is created via Motion, or via my scheduling calendar, or via some other mechanism.

:thinking: What is the problem?

When I get a sample event, it is only one type of event. For example, it was created by Motion OR it was created by my scheduling app OR it was manually created. I can’t set up a filter to exclude events based on a property that isn’t present in my sample event.

:test_tube: What have you tried so far?

I tried creating a filter that excludes one type of event. I tried adding a second condition, but I need to reference a field that is not in my sample data. I tried typing it out like 1.extendedProperties.shared.motionUserId in the same way that it appears that fields are recognized, but I don’t know how to get Make to know it’s a field. In other words, how do I manually enter an instruction to look for a field that’s not in my sample data?

:camera_with_flash: Screenshots: scenario setup, module configuration, errors

Hi @Ali_Ryder,

What you need is abstract referencing in the Make Syntax. You can do this by using the curly brackets:
{{1.value}}

Where:
1 is the number of the Module*
value is the key that you reference. You can use dot notation, if a key contains spaces, you can use backticks ``

Cheers,
Henk

3 Likes

Haha that worked! Thanks so much!!!

2 Likes

Thanks for taking a moment to come back here and let us know that it worked, @Ali_Ryder! Always very useful for the community :slight_smile:

1 Like