web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 6hi430qgU5Cz4xQvLagpen
Power Apps - Building Power Apps
Answered

HTML text box, data from SharePoint and variables

Like (0) ShareShare
ReportReport
Posted on 13 Mar 2023 23:27:04 by 11

Hi,

This one is driving me around the twist and hoping there is something simple I have missed.

I have a global variable I am using in PowerApps (Var1) with a text value of “apple”.

If I put the following directly into an HTML text box in PowerApps "Test  " & Var1 & " then testing again.", I get …. Test apple then testing again.

All great – the variable is replaced with the text.

However if I put "Test  " & Var1 & " then testing again." and put it in to a SharePoint Multiple lines of text column and draw it into the same HTML text box I get …… "Test  " & Var1 & " then testing again."

I have tried

  • Varying the text in the SharePoint column
    • "Test  " & Var1 & " then testing again."
    • Test  " & Var1 & " then testing again.
    • Test   & Var1 &  then testing again. – which was never going to work
  • Varying the format of the SharePoint Multiple lines of text column
    • Plain text  
    • Rich text
    • Enhanced rich text
  • I have tried different ways of getting the information in from SharePoint into PowerApps
    • Lookup
    • Collection
    • Create another variable
    • Coming in the Rich text editor
    • Coming in as plain text

Would anyone have an idea or a work around of how to bring the text in from SharePoint (where the variable name is included in the text) and, still make it dynamic so that the variable value is replaced with the variable’s text value (like it would be if it was typed directly into an HTML text box).

The reason I am using a Global variable is that it is used many times throughout the app.

Thanks in advance.

Categories:
  • WB_1 Profile Picture
    11 on 15 Mar 2023 at 20:21:03
    Re: HTML text box, data from SharePoint and variables

    Hi Dezhi,

    You are correct, I was trying to use the variable in the SharePoint list and have it recognised within the string coming into PowerApps.

    Thank you for your suggestion to use Substitute() as that is a great solution.

  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on 14 Mar 2023 at 03:37:13
    Re: HTML text box, data from SharePoint and variables

    Hi @WB_1 ,

     

    You mean to include your global variable name in the field of your SharePoint list. Do you want power apps to directly recognize the variable name saved in the Sharepoint list and then directly display the content in the variable?
    Unfortunately, this is impossible, even if you save this variable name in SharePoint, it will be recognized as a string when output to power Apps. But you can try the Substitute() formula to substitute a specific string into your variable.

    vdezhilimsft_0-1678764908442.png

    vdezhilimsft_1-1678764928305.png

    vdezhilimsft_2-1678764976071.png

     

    Best Regards,

    Dezhi

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete