cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ShanJoseph
Level: Powered On

Error while using Start and Wait for an approval

Hello All

I have a basic flow reading off a form and sending for approval . The form captures the manager's email address and the flow uses that field to send for an approval to that email address entered in the form

 

I used the template , howeve when i test it ,  i  am getting this error at the Start and Wait for an approval -

 

The 'inputs.parameters' of workflow operation 'Start_and_wait_for_an_approval' of type 'OpenApiConnectionWebhook' is not valid. Error details: Input parameter 'ApprovalCreationInput/requestor' is required to be of type 'String/email'. The runtime value '"anonymous"' to be converted doesn't have the expected format 'string/email'.

 

 

Please help .

 

Thanks 

Shan

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Error while using Start and Wait for an approval

Hi @ShanJoseph 

 

Check your runtime history of your flow and see each steps output. Makes sure you are mapping the right email field.



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



View solution in original post

Highlighted
ShanJoseph
Level: Powered On

Re: Error while using Start and Wait for an approval

you are awesome.  thank you very much .. worked fine , once the anonymous was fixed . The responder was anonymous in the form - if the user didnot log in  , i mapped to another column whcih captured the email address.

 

Once again , thank you @abm 

View solution in original post

8 REPLIES 8
Dual Super User
Dual Super User

Re: Error while using Start and Wait for an approval

Hi

Can you share a screenshot of your Flow in edit mode?

Also, is the Form implemented to the email related question validates the format?

From the info you shared so far, it seems:

-either somebody filled the email request with the string 'anonymous' instead of a formal email address, or

-the mapping between form question outputs and Send an Approval 'To' input is wrong, i.e. you are linking a question output other than the email request

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Super User
Super User

Re: Error while using Start and Wait for an approval

Hi @ShanJoseph 

 

Check your runtime history of your flow and see each steps output. Makes sure you are mapping the right email field.



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



View solution in original post

ShanJoseph
Level: Powered On

Re: Error while using Start and Wait for an approval

Please find the screen shot in edit mode , I have entered valid email in the form  and mapped the sender's email entered in the fotm to the flow to respond back .. could you please advise 

 

Error2.jpg

 

 

Super User
Super User

Re: Error while using Start and Wait for an approval

Hi @ShanJoseph 

 

The screenshot your provided is the run history of your flow. Could you click on each step of the history and make sure it is returning the right outputs. 

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Super User
Super User

Re: Error while using Start and Wait for an approval

Hi @ShanJoseph 

 

Also I can see send email To is set as anonymous. Believe your mapping is not correct here. Expand the steps of run history (click the mouse on each step) and see the returned values. Compare the field against the mappings. If mapping is correct you have issues with data quality.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



ShanJoseph
Level: Powered On

Re: Error while using Start and Wait for an approval

makes perfect sense , but some how i can't seem to get it correct. Please see the output of the previous step

 

"r084a915e07334715a584372091ad96db": "Shan.Joseph@domain.com.au",
"rf4d7d63151cb464db33a05ddc5e0a686": "test",
"r784234b89c3c4f52a807000e17b31cfc": "test",
"re63cd88d13e24d3bb1964f55718d05d7": "1-5",
"r82df27f26027497dbf391ec46a67bf92": "test",
"rf2c577bf442a489090291c0c22b47e17": "Ongoing",
"rde0475f8d4e04d43b8092bd5c1d68384": "test",
"r19acee79447f40ba929f9d7288529d86": "user",
"r1044153750e24303ba440ab1a5b15118": "user@domain.com.au",

 

and the "assigned To" is selected from the dynamic content , which translates to @{outputs('Get_response_details')?['body/r1044153750e24303ba440ab1a5b15118']} whcih maps to the "r1044153750e24303ba440ab1a5b15118": "user@domain.com.au" whcih is valid email 

thanks 

Highlighted
ShanJoseph
Level: Powered On

Re: Error while using Start and Wait for an approval

you are awesome.  thank you very much .. worked fine , once the anonymous was fixed . The responder was anonymous in the form - if the user didnot log in  , i mapped to another column whcih captured the email address.

 

Once again , thank you @abm 

View solution in original post

Dual Super User
Dual Super User

Re: Error while using Start and Wait for an approval

@ShanJoseph

I am marking your last comment also as 'Solution' since you are providing a very valuable insight (i.e. if users do not login email form field is set to anonymous) for other Power Automate users that could deal in the future with a similar scenario

Thanx for sharing!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,625)