cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Remove New Lines in mailBCC field

Hello,

 

I am building a PowerApps, to send an email to multiple recipients. The PowerApp inputs are multiline text inputs, which introduces line breaks.

 

I have Flow sending the actual emails. But it is not able to accept the line break to send the email. 

 

Is there a way to remove the new lines in Flow in order to send the email? Or does this need to be removed first from PowerApps?

 

I get the following error in Flow:

 

The 'inputs.parameters' of workflow operation 'Send_Portal_Alert' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'emailMessage/Bcc' is required to be of type 'String/email'. The runtime value '"xxxxxx@xxx.xxx; \n\nxxxxx@xxx.xxx; \n\nxxxxx@xxxx.xxx; \nxxxxxx@xxx.xxx;\n"' to be converted doesn't have the expected format 'string/email'.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

@Lanae_Hausen 

 

Store multiline text in compose action and then use Replace()

replace(outputs('Compose_2'),'\n','')
 
Thanks
Hardesh

View solution in original post

2 REPLIES 2
Super User II
Super User II

@Lanae_Hausen 

 

Store multiline text in compose action and then use Replace()

replace(outputs('Compose_2'),'\n','')
 
Thanks
Hardesh

View solution in original post

Thank you!

 

That appears to work!

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (43,416)