cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EdwardDucker
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

 

 .+@.+\.[^\.]{2,}

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.

 

Thanks,

 

Edward

3 REPLIES 3
Anonymous
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.

 

Thanks.

v-xida-msft
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.
EdwardDucker
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

'FLOWNAME'.Run(
                FirstName_TextInput_SLong.Text,
                Email_TextInput_SLong.Text,
		... 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

Concatenate(
                    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

INPUTS
Name
Email
Type
String
Value
.+@.+\.[^\.]{2,}

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?

 

Thanks,

 

Edward

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (11,264)