How to link to ToDo tasks?

Occasional Visitor

I am using the Microsoft Graph API to fetch tasks from the ToDo application and I am having trouble when creating links to the tasks. Often tasks use their ID (provided by the Graph API) in the URL. But sometimes tasks (and lists) uses a shorter string that is not the ID in the URL instead. This data is not provided by the Graph API and there is no clear indication for why the ID is not used.


This causes broken links for tasks that uses the shorter string in the URL instead of the ID.
How should links to tasks be created based on the Graph API data?

Example of a task with the ID in the URL:


Example of a task with a shorter string in the URL:


0 Replies