Hi there! I’m creating an automation that syncs different client DBs with the internal task DB using webhooks from Notion. However one of the problems I’m facing is flexibility because I don’t find the way to update properties that are left blank, the automation returns an error saying that the property is “undefined” (image 2) I tried using an if (see image 1) but that didn’t work either, any ideas here?
Hi Oriol,
You need to conditionally omit the property if it’s empty (not pass it at all), or explicitly pass an empty array if you want to clear the property.
You could try mapping the “Value” field (screenshot 1) instead of adding Item 1, and use this function (just pseudofunction, don’t just copy-paste it in Make): if(3.properties.Assignee.people[0].id != null; map(3.properties.Assignee.people; id); {{emptyArray}})
I will try this, now I get what you mean, if I “input” manually something it expects something if I “map” it can be empty and it won’t break, thats awesome.