Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Passing literal string to a collection

Hi guys,


I spent a lot of time looking into how I can save a table into a single record on a SharePoint list (not patch the table to the list) and nearly pulled my hair out looking for an answer. My goal was to have a feature to show a single record in my canvas app with a collection showing the table stored in a record cell next to it. 


I've decided I will go with JSON to do that. To my tremendous frustration, I've discovered that you can easily save a collection as JSON, but you can't convert it back to a collection. I don't want to use flow, so I wrote a parser to convert JSON string into a string that can be passed to Collect() function.


Now, the problem is when I pass my variable to a Collect() function, it takes it as one item, instead of a correct syntax for collection. Can I somehow pass it as a literal string?


I'm attaching screenshots to show what I have in mind.



JSON parser.png



Frequent Visitor

Hi guys, nevermind 😉

It appears PowerApps doesn't support eval feature. There's an idea posted to introduce it in the future, so if you'd like it to become true, please vote (I did 😉 ). 



Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,061)