Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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?

  • MBILGIC Profile Picture
    19 on at
    Re: Email Sent when a "Specific" planner item is completed

    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 

  • MBILGIC Profile Picture
    19 on at
    Re: Email Sent when a "Specific" planner item is completed

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

  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: Email Sent when a "Specific" planner item is completed

    Hi @MBILGIC ,

     

    Sorry, the @ symbol was lost.

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

     

    Best regards,

  • MBILGIC Profile Picture
    19 on at
    Re: Email Sent when a "Specific" planner item is completed

    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 

     

     

  • v-jefferni Profile Picture
    on at
    Re: Email Sent when a "Specific" planner item is completed

    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,

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492