Microsoft Graph API: How to get url for Task in Planner?

TejasSutar 21 Reputation points

I am using planner task API from Microsoft Graph APIs to get details of a task created in planner. Is there any way to Teams client URL for task from Graph APIs? In the API response I don't see any property like webUrl which can be seen for other resources. Does Microsoft provide URLs for planner tasks in Graph API? If it is not supported, can I build URL programmatically?

The task URL copied from Teams client appears to have below format:{channel id}p{planner id}_h_1660906395123?tenantId={tenant id}&{task id}%22%2C%22channelId%22%3A%22{channel id}%22%7D

The string 1660906395123 after h_ looks like some timestamp. Does anyone know what this timestamp is?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,485 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vicky Kumar (Mindtree Consulting PVT LTD) 1,156 Reputation points Microsoft Employee

    For your first question, this feature is not supported in team's channel,

    For your 2nd question, timestamp is nothing but time when you request API call for task in milliseconds. you can change it to readable format.

    hope I answer your question, please let me know if you need any other help.



    please don't forget to upvote and Accept answer if the answer is helpful--

0 additional answers

Sort by: Most helpful