cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vmalhotra
Level: Power Up

Automatic Email once Task completed

Hello,

 

I am quite new to Microsoft flow. I am trying to send an automatic email when I have complete an automatically generated task based on a key search term in the emails. The first email sends without error, in addition the task is created too. However, the second email is not being sent when I complete it. Any help is appericated.

 

 

image.pngCapture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Automatic Email once Task completed

Hi @vmalhotra ,

 

It seems that an Outlook task will be created when an email arrives, then you want to send an email to the email sender when the task has been completed.

 

If so, please try adding a Do until loop likes below, it should work for your scenario.

 

Here, I have set up the flow likes below for your reference.

 

When a new email arrives, initialize a String variable first.

 

Then create a task with required info.

 

Add a do until loop, set its condition to variable status is equal to completed.

 

Within the loop, add delay action with 1 minute, get task, set variable.

 

Note: in the action set variable, select dynamic content Status from action Get task.

 

Under the loop, add action Send an email.

1.PNG

 

Best regards,

Mabel       

   

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Automatic Email once Task completed

@vmalhotra 

Hi there!  So...is that all the same Flow?  If it runs together as the pictures suggest, then you'll never see the yes path of your condition.  The reason is that Flow will immediately go to the next step unless you tell it otherwise.  So, in this case, it is creating the task and then immediately checking to see if it is completed (which it won't ever be).

You can add in a delay before checking the status depending on what you think the average wait time might be...but it might be better to break this into two different Flows, with the second Flow being triggered by the task completion.

 

What do you think?

Either way, keep us posted.

-Ed-

 

 

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Community Support Team
Community Support Team

Re: Automatic Email once Task completed

Hi @vmalhotra ,

 

It seems that an Outlook task will be created when an email arrives, then you want to send an email to the email sender when the task has been completed.

 

If so, please try adding a Do until loop likes below, it should work for your scenario.

 

Here, I have set up the flow likes below for your reference.

 

When a new email arrives, initialize a String variable first.

 

Then create a task with required info.

 

Add a do until loop, set its condition to variable status is equal to completed.

 

Within the loop, add delay action with 1 minute, get task, set variable.

 

Note: in the action set variable, select dynamic content Status from action Get task.

 

Under the loop, add action Send an email.

1.PNG

 

Best regards,

Mabel       

   

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,921)