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 216
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
    51,803 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
    51,803 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 632 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 386 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 245 Moderator

Last 30 days Overall leaderboard