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 :
Power Apps - AI Builder
Suggested Answer

Quotes around an evaluated variable

(0) ShareShare
ReportReport
Posted on by 224
Does anyone know how to put quotes around an evaluated variable? Copilot is giving me a lot of useless bogus formulas that don't work as usual.

example:

set(var, Text(User().FullName))

I want the value of var to have quotes around it:

"John Doe". 
I have the same question (0)
  • Suggested answer
    tareqrosul Profile Picture
    164 on at
    Quotes around an evaluated variable
    Char(34) & User().FullName & Char(34)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,851 Super User 2025 Season 2 on at
    Quotes around an evaluated variable
    HI @jv123
     
    @tareqrosul Answered it perfectly, I simply wanted to add a simple comment to this, but please make sure to Mark @tareqrosul as an Answer
     
    When I do (exactly what @tareqrosul said), what I like to do, is create either a Function, or a Variable that replaces Char(34), so that its a little easier for my brain to remember.
     
     
    Set(_AddQuotes, Char(34)); <== this is an example in a variable alone, in my apps, I will many times create a collection or these so I can remove Quotes or other replacement variables so I have essentially a template Collection of these. Of I will create a function that returns back the double quotes (or other special Char)
     
    Set(a, _AddQuotes & User().FullName & _AddQuotes); <== in my button
     
    Label Output
     
     
    again, please make sure to mark tareqrosul as the answer. If mine helps you can additionally but focus on his
     
    thanks!!
     
     
     
  • Michael E. Gernaey Profile Picture
    52,851 Super User 2025 Season 2 on at
    Quotes around an evaluated variable
    Hi @jv123
     
    If you could come back and mark whatever answers you we would appreciate it

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 803 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 314 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 253 Super User 2025 Season 2

Last 30 days Overall leaderboard