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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / HTML Text and Lookup
Power Apps
Unanswered

HTML Text and Lookup

(0) ShareShare
ReportReport
Posted on by 144

Hi all,

Bit of a strange one I think. I have a HTML Text element on my app where I am pulling together information out of a database.

 

For this one bit I am trying to do a simple Lookup from the DB to return a single result, in this case it will return false as the column type is bit.

 

If i use the following code in a text box or a HTML Text box on its own it returns the correct result.

LookUp(
 '[dbo].[tr_log]',
 enq_id = ENQID,
 quotesubmitted
)

 

If i try add text around it in the HTML Text box it returns nothing for example

"hello start " & LookUp(
 '[dbo].[tr_log]',
 enq_id = ENQID,
 quotesubmitted
) & " hello end"

 

Not 100% sure what is going on, any help is much appreciated.

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    HI @MrDannyHarry ,

    Very strange - as an experiment, try this

    With(
     {
     vMsg:
     LookUp(
     '[dbo].[tr_log]',
     enq_id = ENQID,
     quotesubmitted
     )
     },
     "hello start " & vMsg & " hello end"
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • KrishnaV Profile Picture
    5,023 on at

    Hi @MrDannyHarry ,

     

    I totally agree with @WarrenBelz , However, if I get you right you want to place the text in richtexteditor control, is so: follow any of the below formulas in default property of the control:

     

    with function.png

     

    I hope this resolved your issue if you see any challenge let me know I am always happy to help.

     

    Regards,

    Krishna
    If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard