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 II
Dual Super User II

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.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,987)