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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Email Sent when a "Spe...
Power Automate
Answered

Email Sent when a "Specific" planner item is completed

(0) ShareShare
ReportReport
Posted on by 19

Hi Microsoft community,

 

i have built a flow where i send an email once a planner task is completed however this generalizes any task.

i need to only send an email when a specific task is triggered as completed.

 

Example: 

In Finance, once i do month-end reporting and account receivable is closed, i would like to send an email to relevant people saying "Hi Sales ledger now closed etc" once task AR Close is completed.

 

e.g - Plan x has 5 tasks within it

Task a

Task b

Task c

Task d

Task e

 

i only want to send an email when task D is completed.

 

can someone guide with this?

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @MBILGIC ,

     

    You can leverage trigger condition to achieve your need.

     

    Firstly, you need to get the task ID. Open the task details, find the link to this specific task, paste in browser address and copy the task ID:

    vjefferni_0-1686558741247.png

    vjefferni_1-1686558909016.png

     

    Then in your flow, go to settings of the trigger, apply the condition below and paste the task ID in it:

    equals(triggerOutputs()?['body/id'],'YourTaskID')

    vjefferni_2-1686559214026.png

     

    Best regards,

     

  • MBILGIC Profile Picture
    19 on at

    Hi @v-jefferni ,

     

    thanks for the quick response.

     

    my hyperlink doesn't specify task id, but i assume from the link below my task id is what i highlighted in bold?

     

    /Home/Task/uFgyEGFipE6Yz73akzKuipcAHiac?Type=TaskLink&Channel=Link&CreatedTime=638221655812320000

     

    when i paste the expression with that task id, i get the following error message:

    The power flow's logic app flow template was invalid. The template condition expression 'equals(triggerOutputs()?['body/id'],'uFgyEGFipE6Yz73akzKuipcAHiac')' at line '1' and column '1397' is not valid template language expression.

     

    this is what i entered:

    equals(triggerOutputs()?['body/id'],'uFgyEGFipE6Yz73akzKuipcAHiac')

     

    where have i gone wrong?

    Thanks 

     

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @MBILGIC ,

     

    Sorry, the @ symbol was lost.

    @equals(triggerOutputs()?['body/id'],'uFgyEGFipE6Yz73akzKuipcAHiac')

     

    Best regards,

  • MBILGIC Profile Picture
    19 on at

    @v-jefferni this is perfect. thank you so much for your help.

  • MBILGIC Profile Picture
    19 on at

    Hi @v-jefferni ,

     

    it has been a while since this correspondence, but i'm hoping you can help me with this. i would really appreciate if you could check and get back to me when you have a chance.

     

    So i have been able to create a power automate flow when a specific task id is triggered and marked as completed. the issue i am now having is that we have recurring tasks but when these recurring tasks are set up, they seem to be creating a new task id which then is missed by my output trigger originally set.

     

    is there a way of keeping the same task id for recurring tasks?

     

    please help if you can!

    Thanks in advance

     

    e.g - task name = "Retail division revenue posted" - recurring monthly 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 411

#2
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard