Hey guys,
I use an automated flow to create a task in planner after a MS forms response has been submitted.
After using "create a task" I fill in the description and the checklist in "update task details".
When I open the card in Teams, I can choose "Show description on card". But standard is to show the checklist on card.
Is there a way in Power Automate to set "show on card" for the description part?
Thanks and best regards,
smag
Hi @smag,
You can use the previewType property of the plannerTaskdetails object and set that to description value. You can use a PATCH HTTP request with the Update plannerTaskDetails method of the Graph API for this:
https://learn.microsoft.com/en-us/graph/api/plannertaskdetails-update?view=graph-rest-1.0&tabs=http
Below is an example in a Power Automate cloud flow
In this sample I used an HTTP premium action with OAuth which uses an app registration (client id & secret) in Entra Id (with the correct permissions for this specific method, which is Tasks.ReadWrite.All).
URI
https://graph.microsoft.com/v1.0/planner/tasks/@{outputs('Create_a_task')?['body/id']}/details
Headers
{
"Content-Type": "application/json",
"If-Match": "@{body('Update_task_details')?['@odata.etag']}",
"Prefer": "representation"
}
Body
{
"previewType": "description"
}
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,089
Most Valuable Professional