cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AhmedAlnaqa
New Member

Send email for each email

I have a form that includes a list of emails on it :

AhmedAlnaqa_0-1631185580053.png

 

I need to send an email for each one after form submission.

 

I get this error when submitting:

 

Error details :

The 'inputs.parameters' of workflow operation 'Send_an_email_(V2)' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'emailMessage/To' is required to be of type 'String/email'. The runtime value '"[\"ahmed.alnaqa@alexu.edu.eg\"]"' to be converted doesn't have the expected format 'string/email'.

 

AhmedAlnaqa_1-1631185744352.png

 

 

this process work perfect when I change the selection top option ( just send to only one mail) 

1 ACCEPTED SOLUTION

Accepted Solutions
eric-cheng
Solution Sage
Solution Sage

Hi @AhmedAlnaqa ,

 

Try the below:

 

ericcheng_0-1631187356687.png

 

json(outputs('Get_response_details')?['body/r6c0dbdbd3496472996c66735c1bd72ac'])
 
 

ericcheng_1-1631187388537.png

ericcheng_2-1631187414856.png

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

 

 

 

 

 

View solution in original post

6 REPLIES 6
eric-cheng
Solution Sage
Solution Sage

Hi @AhmedAlnaqa ,

 

Try the below:

 

ericcheng_0-1631187356687.png

 

json(outputs('Get_response_details')?['body/r6c0dbdbd3496472996c66735c1bd72ac'])
 
 

ericcheng_1-1631187388537.png

ericcheng_2-1631187414856.png

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

 

 

 

 

 

AhmedAlnaqa
New Member

I get this error  on compos:

AhmedAlnaqa_0-1631187900074.png

 

Unable to process template language expressions in action 'Compose' inputs at line '1' and column '13257': 'The template language function 'json' expects its parameter to be a string or an XML. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#json for usage details.'.

 

this is the flow:

AhmedAlnaqa_1-1631187935861.png

 

eric-cheng
Solution Sage
Solution Sage

Hi @AhmedAlnaqa ,

 

Can you paste what is in your json() expression?

 

You need to replace the bit in red with the field from your Get response details action.

 

json(outputs('Get_response_details')?['body/r6c0dbdbd3496472996c66735c1bd72ac'])
 
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn
 
 
 
AhmedAlnaqa
New Member

I used the same code u provide and don't able to change the red.

 

what is must be added to this red part? 

 

thanks for your support in advance. 

AhmedAlnaqa
New Member

I did it .. just by replace the value of the JSON values, by click and add the email output value. 

 

thanks. 

xinxinsarah
New Member

It's very helpful.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,130)