cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Replace invalid characters in an Object's outputs

Hello,

 

I have a form from which I'm trying to sanitize the text fields. For this, I put every invalid characters in an array variable, and I wanted to apply to each field a replace() expression, in which I get rid of the invalid chars. I have achieved this so far with this tutorial : https://www.alanps1.io/power-platform/flow/flow-stripping-unwanted-characters-or-special-characters-...

 

The problem is, the first parameter of the replace() expression has to be a string, and my fields are all returned in an Object. I don't know how I can achieve this. I was thinking of maybe putting all the fields in an array, and then looping through it to change every field one by one, but I'm not sure if that's right. Does anyone know how to achieve this ?

 

Thanks!

2 REPLIES 2
Rahber
Super User
Super User

Can you show us an example of the Object you are using?

 

Is it a JSON Object or what? 

 

Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

Thanks,
Rahber

Anonymous
Not applicable

Hello @Rahber,

Here's what the Object looks like : 

Capture d’écran 2021-06-14 084344.png

 

 

 

 

 

 

 

 

 

 

 

It is a JSON Object.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (2,610)