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?
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
@v-jefferni this is perfect. thank you so much for your help.
Hi @MBILGIC ,
Sorry, the @ symbol was lost.
@equals(triggerOutputs()?['body/id'],'uFgyEGFipE6Yz73akzKuipcAHiac')
Best regards,
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
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:
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')
Best regards,
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492