I have a SharePoint list to store string and I would like to use lookup intendent value by using "With" , "MatchAll" and "Filter" function. But it fails to look up the independent value from the string.
The String:
[{"Choices":"I have consented;I do not consent",
"ColumnType":"Choice",
"Data":"I have consented",
"Question":"“Which social media platforms do you use regularly? (Facebook, Twitter, Instagram, LinkedIn)”",
"Required":"Yes",
"Title":"Question1"},
{"Choices":"NA",
"ColumnType":"Text",
"Data":"aaaa",
"Question":"Please write down your reason if selected not consent","Required":"No",
"Title":"Question2"},
The Code:
Expect will show "I have consented" after "Topic 1 :" and "aaaa" after "Topic2 :"
​
With your code I am able to get the lookup value on the html text box, but I only need to show the value of Question 1, 3 ,5 ,7 in the table below.
Any suggestion?
Hi @ed120800 ,
Please note that the column names in the formula were automatically changed to incorrect values when I posted the reply.
Best Regards,
Wearsky
Hi @ed120800 ,
Try this
Concat( ForAll(Sequence( CountRows(ForAll(ParseJSON(ThisItem.Result),{data:Text(ThisRecord.Data)}))),{Data:Index(ForAll(ParseJSON(ThisItem.Result),{data:Text(ThisRecord.Data)}),Value).Data,Index:Value}) ,"<i>Topic "&ThisRecord.Index&"</i> : <b>"&ThisRecord.Data&"</b> <br>")
Best Regards,
Wearsky
try to use it but doesn't work
Hi @ed120800 ,
I made a sample for you with parsejson function.
Concat( ForAll(Sequence( CountRows(ForAll(ParseJSON(First(LIST60).Result),{data:Text(ThisRecord.Data)}))),{Data:Index(ForAll(ParseJSON(First(LIST60).Result),{data:Text(ThisRecord.Data)}),Value).Data,Index:Value}) ,"<i>Topic "&ThisRecord.Index&"</i> : <b>"&ThisRecord.Data&"</b> <br>")
Best Regards,
Wearsky
WarrenBelz
85
Most Valuable Professional
MS.Ragavendar
54
Michael E. Gernaey
42
Super User 2025 Season 1