If I have a SharePoint field which contains multiple key/value pairs in JSON format, does PowerApps have the native capability to be able to parse values from that field? Ideally, I’d like to be able to do this ::
Hello,Ā You don’t have to parse json in power apps.Ā That syntax is how you manually create a table or collection in power apps.Ā That sp list column value is basically a table.Ā If the gallery is each sp list item, click it and populate that row in a form, for your label and value would beĀ
This gets the first row (only row) of the table in that sp column.Ā Putting the .name after the “first(…)” will return that value as a string, rather than a table.Ā Ā Let me know if that solves your issue.
—————————— Nick Miller Premier Field Engineer Altamonte Springs FL —————————— ——————————————-
Michael Seto
Member
May 8, 2020 at 12:51 PM
Hey Nick,
Not sure about what you’re looking for me to try. As a test, I created a text field (TextInput1) and entered the JSON from above as its value. I created a label (Label1) and tried to set its default text to what you suggested, First(TextInput1).name but got errors:
Invalid argument type (Control). Expecting a table value instead.
Invalid use of ‘.’
—————————— Michael Seto Cloud Wiz —————————— ——————————————-
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!