How to link to ToDo tasks?

%3CLINGO-SUB%20id%3D%22lingo-sub-502415%22%20slang%3D%22en-US%22%3EHow%20to%20link%20to%20ToDo%20tasks%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-502415%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20using%20the%20Microsoft%20Graph%20API%20to%20fetch%20tasks%20from%20the%20ToDo%20application%20and%20I%20am%20having%20trouble%20when%20creating%20links%20to%20the%20tasks.%20Often%20tasks%20use%20their%20ID%20(provided%20by%20the%20Graph%20API)%20in%20the%20URL.%20But%20sometimes%20tasks%20(and%20lists)%20uses%20a%20shorter%20string%20that%20is%20not%20the%20ID%20in%20the%20URL%20instead.%20This%20data%20is%20not%20provided%20by%20the%20Graph%20API%20and%20there%20is%20no%20clear%20indication%20for%20why%20the%20ID%20is%20not%20used.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20causes%20broken%20links%20for%20tasks%20that%20uses%20the%20shorter%20string%20in%20the%20URL%20instead%20of%20the%20ID.%3CBR%20%2F%3EHow%20should%20links%20to%20tasks%20be%20created%20based%20on%20the%20Graph%20API%20data%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EExample%20of%20a%20task%20with%20the%20ID%20in%20the%20URL%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fto-do.office.com%2Ftasks%2FAAMkADkxZmFlZDc2LTBjYTMtNDcxYy1hNWJhLWEwMzM5NTE4N2QwZQBGAAAAAABt08W_g2AqTKFoNaCpsx1iBwBMJisgOVGpT7_2L_987tnRAALFIRjfAABMJisgOVGpT7_2L_987tnRAAOtyJB5AAA%3D%2Fdetails%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fto-do.office.com%2Ftasks%2FAAMkADkxZmFlZDc2LTBjYTMtNDcxYy1hNWJhLWEwMzM5NTE4N2QwZQBGAAAAAABt08W_g2AqTKFoNaCpsx1iBwBMJisgOVGpT7_2L_987tnRAALFIRjfAABMJisgOVGpT7_2L_987tnRAAOtyJB5AAA%3D%2Fdetails%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%20of%20a%20task%20with%20a%20shorter%20string%20in%20the%20URL%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fto-do.office.com%2Ftasks%2Fl-2a2xpp6cie6%2Fdetails%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fto-do.office.com%2Ftasks%2Fl-2a2xpp6cie6%2Fdetails%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
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:

https://to-do.office.com/tasks/AAMkADkxZmFlZDc2LTBjYTMtNDcxYy1hNWJhLWEwMzM5NTE4N2QwZQBGAAAAAABt08W_g...

 

Example of a task with a shorter string in the URL:
https://to-do.office.com/tasks/l-2a2xpp6cie6/details

 

0 Replies