Hi !
I am using a workflow that take any todoist new entry and transfer them automatically to a TODO bucket in notion.
Some of these entries in todoist can be tasks and should fall into task bucket in notion instead of TODO Bucket… How can I create a condition to either transfer a new todoist entry into a TODO DB or TASK DB in notion ?
I thought about prefixing my todoist title with “task” but I don’t know how to create a condiftion with pipedream to let the system know what to do once he know if a todoist entry is prefixed.
Sure! You can create a condition in your Pipedream workflow to check if the Todoist entry title is prefixed with “task” and then transfer it to the appropriate Notion database. Here’s a high-level overview of the steps you can follow:
Use the Todoist “New Task” trigger to start your workflow.
Add a code step to check if the title of the new Todoist entry is prefixed with “task”.
Use the Notion “Create Page in Database” action to transfer the entry to the appropriate database based on the condition.
Here’s an example code step to check if the title is prefixed with “task”:
After this code step, you can add two Notion “Create Page in Database” actions, one for the TODO database and one for the TASK database. For each action, use a conditional to run it only if the isTask value from the previous code step matches the desired condition.
For the TODO database action, use this conditional:
steps.your_code_step_name.isTask === false
For the TASK database action, use this conditional:
steps.your_code_step_name.isTask === true
Replace your_code_step_name with the actual name of the code step in your workflow.
This way, your workflow will transfer the new Todoist entry to the appropriate Notion database based on the title prefix.
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.
I’ve been able to create the code block for IsTaks or not but I don’t know how to use a conditional to run a Create Page from Database only if IsTask is setup correctly ?