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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / # symbol from a ShareP...
Power Automate
Answered

# symbol from a SharePoint variable

(2) ShareShare
ReportReport
Posted on by 4
Hi all,
I am a new user in Power Automate and I am editing part of a flow I was given, where I need to add a new variable from a SharePoint table which contains the symbol # on it (i.e. 'Cost Center #').
This is the function expression I have been using:
 
      if(empty(triggerOutputs()?['body/Cost_x0020_Center_x0020_#']), '', toUpper(triggerOutputs()?['body/Cost_x0020_Center_x0020_#']))
 
However, when I run the flow, the field came empty.
Is there any restriction in Power Automate on using # symbols as part of the variable name?
        If yes: How could I fix this issue without renaming the variable back in SharePoint?
 
Thanks in advance
 
Alex G.
Categories:
I have the same question (0)
  • Verified answer
    trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at
    Hi Alex,
     
    Looks like there is an extra special character reference in there, try:
     
    if(empty(triggerOutputs()?['body/Cost_Center_x0023']), '', toUpper(triggerOutputs()?['body/Cost_Center_x0023']))
     
     
    In general terms, I won't use any columns in "#" or other special characters; I typically rename those columns but this should work!
     
     
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and mark as a verified answer to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • Verified answer
    David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    I agree with @trice602 regarding, "In general terms, I won't use any columns in "#" or other special characters; I typically rename those columns but this should work!" I go a step further and create my SharePoint lists fields using camel case and then add spaces afterward.
     
    I don't know how old this blog post is, but I have followed this advice for years and it helps to avoid many issues: CamelCase naming in SharePoint for lists and columns - a SharePoint Online from Scratch tutorial

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

Forum hierarchy changes are complete!

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard