Showing results for 
Search instead for 
Did you mean: 
New Member

Data point corrupted to regex string when posting PowerApp to flow

We use powerapps to create forms to post data up to D365 via Flow.


Observed some strange bahviour last week where EmailAddress data was going into D365 as what looks like a regex



We use the built in email validation for that text field, I assume there is a bug where the regex, or part of the regex is being sent instead of the text in the text box.





Not applicable

Hi @EdwardDucker 


Is it possible for you to share the part of the code where you are sending data flow. Also how you are capturing the value in flow.



Community Support
Community Support

Hi @EdwardDucker ,

Could you please share a bit more about your issue?

How do you pass the email address from your app to your flow? Could you please share a bit more about the formula?


Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. Please check if you have specified a proper parameter within your flow, which used to receive email address passed from your app.


Also please check if you have provide a proper email address value for the Email Address Argument within the 'FlowName'.Run() function.


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.
New Member

Hi @v-xida-msft and @Anonymous 

Thanks for replying.

I'm not using a form as such, just a series of textboxes and dropdowns etc. A button on the screen triggers the flow via it's on select attribute.

The flow is run like this in the onselect

		... etc)

Another thing we do in flow is concatenate all of the fields and dump them into a description field in D365. This is also in the same flow

                    Char(13), " First Name: ", FirstName_TextInput_SLong.Text,
                    Char(13), " Email: ", Email_TextInput_SLong.Text,
		... etc)

Char(13) being a carriage return, so the text looks nice when in D365


What is strange is the the email address isn't corrupted from the concatenated string that goes into descirption, but the email address is.


Debugging the completed flow I can see this when looking at the initialized vaiable


I do use email validation in this screen. In the onselect for the submit button there is this bit of code before the submit is done

(!IsMatch(Email_TextInput_SLong.Text, Match.Email ))

This is the only possible way that the regex could get into the submit. However if this was the case, would that corruption happen not only with the email ield itself, but also the caoncatenated description field too?


Has anyone else observed behaviour like this?





Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (857)