I’m having a hard time mapping a title field (the main property) when creating new database items in Notion via Make. Other properties are working fine (relations, selects, etc.), but the title field refuses to accept any variable mapping.
No matter what I do, the “Create Database Item” module fails if I try to map the title using these variables. The only way I can successfully create items is by typing the title manually.
Has anyone else run into this problem? How did you manage to map a variable into the title field for a Notion database item?
I’ll attach some screenshots of my setup if needed.
Hi Igor, did you also try without the “0” in between?
If so, could you check the output data (clicking the “1” white-circled icon next to the module after a run) of the module from where you’re mapping this property?
I’m using the [0] for index. Currently, the mapping looks like this: {{26.properties_value.Nome[0].text.content}} (and I’ve also tried {{26.properties_value.Nome[0].plain_text}} as well).
Let me outline my scenario:
I start with a Search objects module in Notion to find the pages I need.
The returned data goes into an Array Aggregator to consolidate the results.
Then I pass that aggregated array into an Iterator so I can handle each page individually.
Inside the Iterator, I’m using a Create Database Item step to create the page in my target Notion database.
When I open the output data of the preceding modules (like after a run, checking the “1” white-circled icon), I can see the Nome property is indeed an array with a single text element. That’s why I’m using [0]—I know it’s there. The text shows up in the output data as expected, both text.content and plain_text fields are visible.
Even with that, when I try to map it into the title field of the “Create Database Item” action, I get an error. The only way it works is if I type a title manually—no variables allowed, it seems.
Any other ideas on what might be causing this issue?
Got it, I appreciate the explanation. I would still try without the “0” if possible, because not including the 0 is the same as getting index 0 (the first item in the array)