web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Loading JSON table fro...
Power Apps
Unanswered

Loading JSON table from SharePoint to a collection in PowerApps

(0) ShareShare
ReportReport
Posted on by 467

Hi All ,

 

Hope you're doing good.

 

I create an app that loads people into a collection.... this is ok...

I patched a multiline field in a SharePoint list with the JSON value of my collection

 

Patch(
 testPeople, //Name of my SPList
 Defaults(testPeople),
 {
 Title:"Test JSON",
 TablePeople:JSON(colPeople) //Name of my collection
 }
)

 

 

So i end up with my TablePeople field (mulitline) containing my collection.

 

 

[{"@odata.Type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser","Claims":"i:0#.f|membership|Victor@xxx.net","Department":"","DisplayName":"Victor","Email":"Victor@xxx.net","JobTitle":null,"Picture":""}]

 

 

Now i'm trying to push this table back into an other collection in my app...

 

Set(varTest,LookUp(testPeople,Title="Test JSON",TablePeople));

ClearCollect(colTablePeople,
 ForAll(
 Table(ParseJSON(varTest)),
 {
 odata:Text(Value.odata),
 Claims:"i:0#.f|membership|" & Text(Value.Email),
 Department:"",
 DisplayName:Text(Value.DisplayName),
 Email:Text(Value.Email),
 JobTitle:Text(Value.JobTitle),
 Picture:""
 }
 )
);

 

 

and this...is not working 😅

 

...and i see i get an error saying : JSON paring error : unexpectd token '<' , "<div class"... is not a valid JSON

 

when i look at the value returned in my variable i see this ....

 

 

<div class="ExternalClass7E438A091C7746C18005EB5CE3BC96B8">[&#123;&quot;@odata.Type&quot;&#58;&quot;#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser&quot;,&quot;Claims&quot;&#58;&quot;i&#58;0#.f|membership|victor@xxx.net&quot;,&quot;Department&quot;&#58;&quot;&quot;,&quot;DisplayName&quot;&#58;&quot;victor&quot;,&quot;Email&quot;&#58;&quot;victor@xxx.net&quot;,&quot;JobTitle&quot;&#58;null,&quot;Picture&quot;&#58;&quot;&quot;&#125;]</div>

 

 

and i'm a bit lost ....

 

Could someone be able to help me with this please ?

 

Thanks a lot !

 

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at

    Hello @Kadd 

     

    Umm, how did you go from a message that wants help loading JSON 

    to some weird HTML that I have no idea how you generated it or even why.

     

    What is the actual issue you need help with 🙂


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Kadd Profile Picture
    467 on at

    Hello @FLMike 

     

    Thanks for your message.

     

    Well my question is ... how can i load back the table content of my SharePoint field  (TablePeople) into a collection (colTablePeople) in my app ? 

     

    Sorry if i was not clear 😅 i have the feeling what i'm doing is correct...or not too far... but it's not working.

     

    About the "weird html" , when i lookup my item from my list and show the "TablePeople" field to a label on my application, this is what i get....

     

    Thanks 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard