Forum Discussion
JSON to Format a SharePoint List
- Jun 22, 2020
jdiorio you've spelt Customer incorrectly on line 84. Once you've corrected that it should be fine, I created a list with your JSON and it displayed with no problem.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
Hi RobElliott ! Well, the 'good' news was that I did indeed have a Column reference misspelled. I corrected, and was really hoping that would correct, but even after that correction, when I paste the JSON into the List formatting I'm still getting presented with a blank List.
This problem only started after I created the DIV on Line 72 titled "_COMMENT_":"CUSTOMER INFO". It happened that the misspelled column reference was in this section on Line 84, but again, even after that correction I'm still getting the blank list. Before I messed around in that area however by trying to break out the 'FO, Machine and Customer' DIV from the 'CUSTOMER INFO' DIV, everything seemed to be working correctly and pulling in the appropriate SharePoint information 😞
Pasted below is the code with the Column reference correctly spelled. I went through and verified that the other column references are correctly referencing SharePoint Column names.
Also, following up on my above post that has the corrected Column Name but that still shows a blank List, the code below is my last version that does still work, just in case that help (??):
- RobElliottJun 22, 2020Silver Contributor
jdiorio you've spelt Customer incorrectly on line 84. Once you've corrected that it should be fine, I created a list with your JSON and it displayed with no problem.
Rob
Los Gallardos
Microsoft Power Automate Community Super User- jdiorioJun 22, 2020Copper Contributor
Hi RobElliott ! Along with misspelling Customer, I also had completely screwed up the syntax of the rest of that line. My original code left off the last parens after block on line 84 and I believe a single quote, along with misspelling CUSTOMER.
Thanks for pointing me in the right direction.....works great now!!