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

Prevent escape characters when populating array from text

Manual Trigger Flow

Parameter: pstrArray

 

pstrArray = 
{ "What": "Love", "Who": "Eros"},
{ "What": "Sea", "Who": "Neptune"},
{ "What": "Slingblade","Who":"Billy Bob Thorton"}

 

Initiate an Array variable, arrArray, and populate with:

    [ trigger()?[text] ] 

(Concatenation of the square brackets with the text in-between.)

 

When ran, arrArray gets special chars added:

[
"
{ \"What\": \"Love\", \"Who\": \"Eros\"},\n
 { \"What\": \"Sea\", \"Who\": \"Neptune\"},\n
 {\"What\": \"Slingblade\",\"Who\":\"Billy Bob Thorton\"}
"
]
 
What's the proper way to parse to populate the an array variable with array-like text from a trigger parameter?
2 REPLIES 2
DamoBird365
Super User
Super User

Hi @CantStopTheFlow 

 

Using a select I think:

 

DamoBird365_0-1614969185693.png

 

I've just had the same learning experience 🙂

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


(I didn't realize that my post stripped out the n's after the slashes "\ n" and all of the double quotes.)

 

I had started down the Select path, but because I wanted to have a various number, and naming, of columns, I cut it short.  

 

I definitely wasted far too much energy on this, so thanks for the tip.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (4,158)