Hello,
I have this string that was originally like this
{"Test Last Name","Test First Name","T","",35386,45341}
and used split function to become this
okay !
Hi @EBelmonte ,
What @Chriddle said makes sense , so you can iterate on this array and use the index of the array items to pass the values to the correct columns in your SP list.
Thanks,
The output from office scripts looks like this:{ "result": [ [ "D Test Last Name", "D Test First name", "T", "", "Male", "Single", "Brother", "28/May/2002" ], [ "", "", "", "", "", "", "", "" ], [ "", "", "", "", "", "", "", "" ] ], "logs": [] }
This is already json 😉
Assuming this is the output of an action named "Compose" you can just use
first(outputs('Compose')['result'])
to get the following array
[
"D Test Last Name",
"D Test First name",
"T",
"",
"Male",
"Single",
"Brother",
"28/May/2002"
]
Hello @SanmeshG,
First, thank you for taking the time to read thru my query.
1. The data originally came from an Excel an range - I used Office Scripts (see below) to get the values. I can't convert the data to a table as I'm not the owner of the template.
Hi @EBelmonte ,
How is that string being generated ?
I wonder if there is any way to create JSON itself at first place than creating the string and then creating the array.
But one thing that I can think of is , you can iterate on that array using apply to each that you are getting after splitting and use the even and odd index of that to convert it into a JSON and then append the objects to create an array of objects given.
But , I am bit confused with the string that you have shared which of that is a key and which one is a value?
Thanks,
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2