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

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

5 REPLIES 5
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!!!!

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...

This post helped me so much. How would one alter this flow if the task is assigned to more than one person?

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,451)