cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vidanaw
Helper IV
Helper IV

Send an emil with approver response comment

Hi All,

I m trying to create an approval workFlow with approver response comment.

I m getting folowing error.

error.png

 

Pic1.png

 

I tried import and export the W/F, but still i m getting the error.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Vidanaw ,

Do you reference the "Created By Email" dynamic content within your "Send an Email" action from the "Update Item" action in the "Yes" branch of the Condition?

 

Based on the error message that you mentioned, I found that you referenced the "Created By Email" dynamic content within your "Send an Email" action from the "Update Item" action in the "Yes" branch of the Condition, is it true? If it is true, I think this is the issue.

 

Currently, within MS Flow, you could not reference dynamic content from actions within a Condition outside the condition action. In your scenario, you could only reference the  "Created By Email" dynamic content from the trigger.

 

As an alternative solution, you could add a "Initialize variable" action under the "When an item is created" trigger as below:10.JPG

Then within your "Send an email" action, set the To field to the UpdateUserEmail variable as below:12.JPG

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
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

4 REPLIES 4
RezaDorrani
Dual Super User
Dual Super User

Hi @Vidanaw 

 

In your send an email action,

select the created by email using dynamic content obtained by the "When an item is created" trigger action

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Hi @RezaDorrani 

That's what I m doing on the last step Send "Created By".

Thanks.

Hi @Vidanaw 

 

According to that error message, you are using the Created by Email attribute from the Update item and not the initial trigger as REza was alluding to.

 

Scroll through the dynamic content list and see if you can find the trigger attribute to use which may solve your issue.

 

Hope it works out!

 

Cheers and best wishes

Damien

v-xida-msft
Community Support
Community Support

Hi @Vidanaw ,

Do you reference the "Created By Email" dynamic content within your "Send an Email" action from the "Update Item" action in the "Yes" branch of the Condition?

 

Based on the error message that you mentioned, I found that you referenced the "Created By Email" dynamic content within your "Send an Email" action from the "Update Item" action in the "Yes" branch of the Condition, is it true? If it is true, I think this is the issue.

 

Currently, within MS Flow, you could not reference dynamic content from actions within a Condition outside the condition action. In your scenario, you could only reference the  "Created By Email" dynamic content from the trigger.

 

As an alternative solution, you could add a "Initialize variable" action under the "When an item is created" trigger as below:10.JPG

Then within your "Send an email" action, set the To field to the UpdateUserEmail variable as below:12.JPG

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

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

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,466)