Skip to main content

Notifications

Community site session details

Community site session details

Session Id : SJzusv1kjgnKYDmtFwVH8r
Power Apps - Building Power Apps
Unanswered

Use Html Text to get value from syntax in sharepoint list

Like (0) ShareShare
ReportReport
Posted on 20 May 2024 03:13:29 by 66

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.   

 

ed120800_1-1716174382880.png

 

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: 

ed120800_2-1716174651098.png

Expect will show "I have consented" after "Topic 1 :" and "aaaa" after "Topic2 :" 

ed120800_3-1716174685804.png

 

​

  • ed120800 Profile Picture
    66 on 20 May 2024 at 09:07:45
    Re: Use Html Text to get value from syntax in sharepoint list

    @v-xiaochen-msft 

    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.  

    ed120800_1-1716195809010.png

     

    ed120800_2-1716196021282.png

    Any suggestion? 

  • v-xiaochen-msft Profile Picture
    on 20 May 2024 at 08:56:26
    Re: Use Html Text to get value from syntax in sharepoint list

    Hi @ed120800 ,

     

    Please note that the column names in the formula were automatically changed to incorrect values when I posted the reply.

    vxiaochenmsft_1-1716195331721.png

    vxiaochenmsft_2-1716195375926.png

     

    Best Regards,

    Wearsky

  • v-xiaochen-msft Profile Picture
    on 20 May 2024 at 08:53:41
    Re: Use Html Text to get value from syntax in sharepoint list

    Hi @ed120800 ,

     

    Try this

    Concat( ForAll(Sequence( CountRows(ForAll(ParseJSON(ThisItem.Result),{data&colon;Text(ThisRecord.Data)}))),{Data:Index(ForAll(ParseJSON(ThisItem.Result),{data&colon;Text(ThisRecord.Data)}),Value).Data,Index:Value}) ,"<i>Topic "&ThisRecord.Index&"</i> : <b>"&ThisRecord.Data&"</b>&nbsp;&nbsp;&nbsp;<br>")

    vxiaochenmsft_0-1716195199919.png

     

    Best Regards,

    Wearsky

  • ed120800 Profile Picture
    66 on 20 May 2024 at 08:39:13
    Re: Use Html Text to get value from syntax in sharepoint list

    @v-xiaochen-msft 

     

    I put the code in HtmlText and it return error

     

    ed120800_0-1716194113360.png

     

  • v-xiaochen-msft Profile Picture
    on 20 May 2024 at 08:32:05
    Re: Use Html Text to get value from syntax in sharepoint list

    Hi @ed120800 ,

     

    Could you show your code and screenshot?

     

    Best Regards,

    Wearsky

  • ed120800 Profile Picture
    66 on 20 May 2024 at 08:30:00
    Re: Use Html Text to get value from syntax in sharepoint list

    try to use it but doesn't work

  • ed120800 Profile Picture
    66 on 20 May 2024 at 04:00:35
    Re: Use Html Text to get value from syntax in sharepoint list

    Hello @v-xiaochen-msft 

     

    Can you advise how to use your function? 

     

    Thanks 

  • v-xiaochen-msft Profile Picture
    on 20 May 2024 at 03:42:57
    Re: Use Html Text to get value from syntax in sharepoint list

    Hi @ed120800 ,

     

    I made a sample for you with parsejson function.

    vxiaochenmsft_0-1716176545158.png

    Concat( ForAll(Sequence( CountRows(ForAll(ParseJSON(First(LIST60).Result),{data&colon;Text(ThisRecord.Data)}))),{Data:Index(ForAll(ParseJSON(First(LIST60).Result),{data&colon;Text(ThisRecord.Data)}),Value).Data,Index:Value}) ,"<i>Topic "&ThisRecord.Index&"</i> : <b>"&ThisRecord.Data&"</b>&nbsp;&nbsp;&nbsp;<br>")

    vxiaochenmsft_1-1716176569363.png

     

    Best Regards,

    Wearsky

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 54

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 42 Super User 2025 Season 1

Overall leaderboard