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
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,310)