You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a tasknotes web hook with n8n for creating a task in Todoist. When the web hook is received it contains ALL the frontmatter of the newly created task note. I then use a workflow to create a Todoist task, and then write the Todoist task ID back to the task note frontmatter. The problem is, that if I then want to do something else in the workflow to sync with Todoist, when I receive a web hook for say task.completed, the received webhook data does not contain my custom frontmatter of the task note, like it does with task.created. Is there some way to ensure that all the frontmatter task note properties a sent with the webhook event? Also, I can't get a web hook to work at all with task.deleted. Also I can't get the API to get an individual task as in api/tasks/:encoded_path_to note. Any help? I tried using a custom field, and that works well in the tasknotes edit modal, but the custom field is not sent with a web hook!
I managed to get an individual task using the api, I was not encoding properly.
As a work around that as a defined custom field is not included in data.task properties, I can use the Obsidian Rest API to get the note from the data.task.path from the Webhook. received in n8n. From the note I can extract the Todoist ID of the synced task and then manipulate the Todoist task, i.e. sync it again.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using a tasknotes web hook with n8n for creating a task in Todoist. When the web hook is received it contains ALL the frontmatter of the newly created task note. I then use a workflow to create a Todoist task, and then write the Todoist task ID back to the task note frontmatter. The problem is, that if I then want to do something else in the workflow to sync with Todoist, when I receive a web hook for say task.completed, the received webhook data does not contain my custom frontmatter of the task note, like it does with task.created. Is there some way to ensure that all the frontmatter task note properties a sent with the webhook event? Also, I can't get a web hook to work at all with task.deleted. Also I can't get the API to get an individual task as in api/tasks/:encoded_path_to note. Any help? I tried using a custom field, and that works well in the tasknotes edit modal, but the custom field is not sent with a web hook!
I managed to get an individual task using the api, I was not encoding properly.
As a work around that as a defined custom field is not included in data.task properties, I can use the Obsidian Rest API to get the note from the data.task.path from the Webhook. received in n8n. From the note I can extract the Todoist ID of the synced task and then manipulate the Todoist task, i.e. sync it again.
Beta Was this translation helpful? Give feedback.
All reactions