cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AnnetteM
Helper I
Helper I

Flow email to send link to Planner task

I have a flow that will send an email to the manager of the complaint department when a new Planner task is created. I am able to include the name of the task as well as the Bucket it was dropped within the email body. I would also like to include a link in the email to take the manager directly to the newly created task card. How can this be done?

1 ACCEPTED SOLUTION

Accepted Solutions
Amanthaper
Responsive Resident
Responsive Resident

Hi,

Please use this URL to dynamically construct the link within a flow. You will need to reference your org's tenant.

https://tasks.office.com/yourorgtenant.onmicrosoft.com/Home/Task/7xwgXPo4dkGMvlbL7cLf9mUADD8o?Type=T...

You can customize the Outlook email body and use an HTML href to do this.

Here's a walkthrough.

UA_Planner3.png

Result.

UA_Planner2.png

This is the Outlook body syntax:

<a href="@{variables('Tasklinkhead')}@{triggerOutputs()?['body/id']}@{variables('Tasklinkfoot')} "onMouseOver="this.style.color='#CC0022'" onMouseOut="this.style.color='#75757C'" target="_blank" data-toggle="tooltip"
title="Here is a link to this task">Here is a link to this task: @{triggerOutputs()?['body/title']}</a>
<p>
<a href="https://tasks.office.com/atnypa.onmicrosoft.com/Home/Task/@{triggerOutputs()?['body/id']}?Type=TaskL..."
onMouseOver="this.style.color='#CC0022'" onMouseOut="this.style.color='#75757C'" target="_blank"
data-toggle="tooltip" title="Here is another link to this task">Here is another link to this task@{triggerOutputs()?['body/title']}</a>

 

Hope this helps,

Aman T.

------------------------------------------------------------------------------------------------------
If my post helps you with your problem or answers your question, please mark it Solved or Answered. This helps anyone with similar challenges. If you like my response, please give it a Thumbs Up.
------------------------------------------------------------------------------------------------------

View solution in original post

4 REPLIES 4
Amanthaper
Responsive Resident
Responsive Resident

Hi,

Please use this URL to dynamically construct the link within a flow. You will need to reference your org's tenant.

https://tasks.office.com/yourorgtenant.onmicrosoft.com/Home/Task/7xwgXPo4dkGMvlbL7cLf9mUADD8o?Type=T...

You can customize the Outlook email body and use an HTML href to do this.

Here's a walkthrough.

UA_Planner3.png

Result.

UA_Planner2.png

This is the Outlook body syntax:

<a href="@{variables('Tasklinkhead')}@{triggerOutputs()?['body/id']}@{variables('Tasklinkfoot')} "onMouseOver="this.style.color='#CC0022'" onMouseOut="this.style.color='#75757C'" target="_blank" data-toggle="tooltip"
title="Here is a link to this task">Here is a link to this task: @{triggerOutputs()?['body/title']}</a>
<p>
<a href="https://tasks.office.com/atnypa.onmicrosoft.com/Home/Task/@{triggerOutputs()?['body/id']}?Type=TaskL..."
onMouseOver="this.style.color='#CC0022'" onMouseOut="this.style.color='#75757C'" target="_blank"
data-toggle="tooltip" title="Here is another link to this task">Here is another link to this task@{triggerOutputs()?['body/title']}</a>

 

Hope this helps,

Aman T.

------------------------------------------------------------------------------------------------------
If my post helps you with your problem or answers your question, please mark it Solved or Answered. This helps anyone with similar challenges. If you like my response, please give it a Thumbs Up.
------------------------------------------------------------------------------------------------------

This worked PERFECTLY!!!! Thank you!!!!

Amanthaper
Responsive Resident
Responsive Resident

Glad that worked out for you. It's useful piece of code to keep handy. 🙂

Thanks for this, my use case was slightly different.

I am automating cross linking a task and a List item.

The problem is the same though - no native access to task URL.

 

Your content here got me off in the right direction thanks 👍

 

I used a simple concatenate function to stitch together the task URL.

  1. Go to a sample task
  2. Copy the URL of the task
  3. Paste it and only retain the first part of the URL

    https://tasks.office.com/YourOrgURL.com/Home/Task/ 

  4. Create your concat() function as follows and insert the ID of the task from your Dynamic Content:

    contcat( 'https://tasks.office.com/YourOrgURL.com/Home/Task/',  [TASK ID])

Agree, it should be supported natively but this is a operational workaround till Microsoft catch up with this...

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,975)