This topic was automatically generated from Slack. You can find the original thread here.
Hi I’m trying to create a workflow that updates few properties in notion page when a condition is satisfied. The update_page notion action has Page ID field wherein we can select the page number to be updated or use custom expression. I used the custom expression to get the page ID from a previous step ({{steps.trigger.event.id}}), However I’m unable to fetch the property types via custom expression as I’m getting a syntax error. Can you help me out? Attaching the URL for my workflow and the issue screenshot.
Workflow url - https://pipedream.com/@jeyadevn/medium-workflow-p_brCdk2d/build
I’m sorry to hear that you’re having trouble with the Notion Update Page action. To help you better, I need to understand the exact custom expression you’re trying to use for fetching the property types. Can you please provide the custom expression you’re using and the syntax error message you’re encountering? This will help me identify the issue and provide a solution.
Apologies for the delay. Based on the custom expression you provided, it seems like you’re trying to fetch two different properties in a single expression. To resolve the syntax error, you should separate the expressions for each property. Here’s how you can do that: For the “Published?” property: {{steps.trigger.event.properties["Published?"].rich_text[0].text.content}} For the “Link” property: ```
{{steps.trigger.event.properties.Link.rich_text[0].text.content}}
Hi , if you use {{steps.trigger.event.id}} it won’t be able to load the property types — we have a pending feature for evaluating custom expression tracked by this Github issue. You can subscribe to it to receive updates!