I’ve also thought about constructing the body of the request separately but I’m not sure how to create an array of items with a key of id and the value set to the IDs from a map of IDs, for multiple properties, efficiently.
Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.
You can upload images here using the Upload icon in the text editor:
2. Scenario blueprint
Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.
(Note: Exporting your scenario will not include private information or keys to your connections)
Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module and select “Download output bundles”.
A.
Save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
Thanks but I still need to update the page, to populate other properties, even if the Type is empty.
I’m updating quite a few relation properties here so using routers with filters would get very messy. There must be a way to either insert an empty value that Notion will accept or not include the property in the request when sending the request
Thanks but neither of those options work, if you mean just entering N/A as text as the fallback?
I’ve even just tried fetching the page and populating the property with the current contents of the property if the result of the map is null (which is just []) and that doesn’t work.
There seems to be an issue with the way that the output of the map is being evaluated because if I set a valid page ID as the fallback for isempty() or if() then I still get the error. But if I set the page ID as the value for the property, without any logic, it’s accepted
I’ve tried the if() = test with null, emptyarray, emptystring and no additional criteria.
length(map(1.data; "Type")) gives me an output of 1, even though the result is null so that’s good