web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow email to send lin...
Power Automate
Answered

Flow email to send link to Planner task

(0) ShareShare
ReportReport
Posted on by

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?

Categories:
I have the same question (0)
  • Verified answer
    Amanthaper Profile Picture
    441 on at

    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=TaskLink&Channel=Link

    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=TaskLink"
    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.
    ------------------------------------------------------------------------------------------------------

  • AnnetteM Profile Picture
    on at

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

  • Amanthaper Profile Picture
    441 on at

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

  • JSimmons Profile Picture
    10 on at

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

  • CassiaB Profile Picture
    3 on at

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard