cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wiredupjax
Resolver I
Resolver I

Parsing data

Dear PA peers--

 

How would I go about parsing this data: ["6 Month","12 Month","Primary (single)"]

 

I just need the data between the " " and stored in a single string. 

 

This is a tuffie for me.

 

Best, JS

2 ACCEPTED SOLUTIONS

Accepted Solutions
rsaikrishna
Community Champion
Community Champion

@wiredupjax 

 

Created an sample for your requirement:

 

Stored the string which you provided in a variable of type Array. Looping thru each item to get individual value:

 

1.JPG

 

Output:

2.JPG

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

View solution in original post

@rsaikrishna helped me nail the final solution! Many thanks

 

For MemberShip Conversion

----> replace(replace(replace(replace(outputs('MembershipType'),'["',''),'"]',''),'"',''),',',', ')

 

final.jpg

View solution in original post

7 REPLIES 7
rsaikrishna
Community Champion
Community Champion

@wiredupjax 

 

Created an sample for your requirement:

 

Stored the string which you provided in a variable of type Array. Looping thru each item to get individual value:

 

1.JPG

 

Output:

2.JPG

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

@rsaikrishna 

 

Actually, this threw an error:

 

BadRequest. The variable 'varString' of type 'Array' cannot be initialized or updated with value '["12 Month","Primary (single)","Corporate"]' of type 'String'. The variable 'varString' only supports values of types 'Array'.

@wiredupjax 

 

Can you please share the screen shot of your flow? 

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

parse.jpg

@wiredupjax 

 

Before your first action "Initialize variable...", place a compose action and set the value Wellness Progra.. field. 

 

Now, Initialize variable with output from compose action.

 

Share the flow result of the compose and initialize variable actions.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

parse 2.jpg

@rsaikrishna helped me nail the final solution! Many thanks

 

For MemberShip Conversion

----> replace(replace(replace(replace(outputs('MembershipType'),'["',''),'"]',''),'"',''),',',', ')

 

final.jpg

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,625)