Notion DB_ID from previous step

Is it possible to get a dynamic Notion database ID from a previous step? See my screenshots - maybe it get’s clearer :slight_smile:

Hi @l.postma,

Yes, it’s possible to get a dynamic Notion database ID from a previous step. When using a Notion action, like “Retrieve Database Content” or “Query Database”, you can pass the database ID from a previous step as a string. In the action configuration, instead of selecting a database ID from the dropdown, you can use the variable from the previous step that contains the database ID.

For example, if the previous step is named get_database_id, and it returns the database ID as database_id, you can reference it as steps.get_database_id.database_id in the Notion action configuration.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.