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?
Solved! Go to Solution.
Hi,
Please use this URL to dynamically construct the link within a flow. You will need to reference your org's tenant.
You can customize the Outlook email body and use an HTML href to do this.
Here's a walkthrough.
Result.
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.
------------------------------------------------------------------------------------------------------
Hi,
Please use this URL to dynamically construct the link within a flow. You will need to reference your org's tenant.
You can customize the Outlook email body and use an HTML href to do this.
Here's a walkthrough.
Result.
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.
https://tasks.office.com/YourOrgURL.com/Home/Task/
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?
User | Count |
---|---|
102 | |
40 | |
29 | |
23 | |
16 |
User | Count |
---|---|
132 | |
52 | |
50 | |
36 | |
24 |