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!

3 REPLIES 3
Rahber
Solution Sage
Solution Sage

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.

bonjourposte
Regular Visitor

Not sure if this applies, but Reza touches on replacing characters at 14:40 - https://www.youtube.com/watch?v=VnWg-Eox37Q&t=989s

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (1,801)