Photo by JJ Ying on Unsplash

Direct link to Power Automate approval task

This one is going to be short. Sometimes you may need to send a user a direct link to their approval task in Power Automate approvals. Here it is!

There can be many scenarios when you would need direct link to an approval. For example, when creating approvals around SharePoint items. Back in times when companies were using SharePoint Workflow Manager and all tasks were stored within a site where an approval was taking place, this was very much intuitive for users where to look for their tasks.

Today, when Power Automate is independent from SharePoint, sometimes users are confused where should they look for their tasks.

But with direct links to approval tasks, you can simply create a list with links to tasks assigned to specific users, create a view showing the “Assigned to me” tasks and then after an approval is created, populate it with details of assigned tasks:

Populating a list of assigned tasks in SharePoint

After list is populated, workflow then can start to wait for all required tasks to be completed.

Direct link to approval task is pretty simple:[ENVIRONMENT ID]/approvals/received/[APPROVAL ID]

You can additionally add the outcome parameter, at the end of the URL, that will pre-set task’s response, e.g.: ?response='Approve' or ?response='Approve' , or ?response='Reassign'.

And if you would like to paste is as an expression, it would be (assuming you haven’t changed the “Create an approval” action name):{workflow().tags.environmentName}/approvals/received/@{body('Create_an_approval')?['name']}?response='Approve'

Just copy the above and paste. Yes, it is the same for all assignees. But depending on the signed in user, the task assigned to them is displayed. Since a user can’t have more than a one task assigned in the same approval process it makes sense, right? ๐Ÿ™‚ Good luck! ๐Ÿ™‚

Tomasz Poszytek

Hi, I am Tomasz. I am expert in the field of process automation and business solutions' building using Power Platform. I am Microsoft MVP and Nintex vTE.

  • RPLA

    Wow, I just discovered a direct link to Power Automate approval tasks! This is going to be a game-changer for managing and tracking approvals efficiently. No more searching through emails or navigating multiple screens. With a single click, I can directly access the approval task and take action immediately. This feature will save me so much time and keep me on top of my workflow.

    June 23, 2023 at 2:37 pm Reply
    • Tomasz Poszytek

      I’m glad this is such a gamechanger for you ๐Ÿ™‚

      June 29, 2023 at 10:48 am Reply
  • Shari

    Thanks for this tip, really saved us a lot of time. Is there a way to also populate the comment field and confirm the response as a URL? This would be really useful for us in our PowerApp.

    June 29, 2023 at 10:04 am Reply
    • Tomasz Poszytek

      I haven’t found any parameters for this yet. Once I do, I’ll definitely write about it.

      June 29, 2023 at 10:48 am Reply
  • Nigel Smith

    One thing to mention, if you are comfortable with Dataverse, you do not need to populate a Sharepoint list with Approval Links, as the “Approval” table in Dataverse has the Approval ID needed to make the direct link, and the “Approval Request” has all the pending approvers.
    Additionally, users already have access to records in the Approval table that are relevant to them.
    With Dataverse, you could either more efficiently move the Approval links to Sharepoint, or forego a Sharepoint list entirely with something like a PowerApp. Wanted to mention it, since populating a Sharepoint list can cause inaccuracies that the data from Dataverse wouldn’t have.

    June 30, 2023 at 3:00 pm Reply
    • Tomasz Poszytek

      Hey, thanks for the comment. This is all almost true that you are writing. Almost, because despite that users are having access to Dataverse tables (those taking part in the approvals), when building an app or flow that uses them, you still need to have premium licenses assigned, which is sometimes a really big effort for companies.

      August 2, 2023 at 1:09 pm Reply

Post a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.