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 / [BUG] Custom command b...
Power Apps
Unanswered

[BUG] Custom command bar - cannot get fields with spaces

(0) ShareShare
ReportReport
Posted on by 6

Hello, I am creating a button on the Contact main form.

I am getting the associated Account (renamed to Household in my environment).

I can get the Name and Account fields of the associated Account record, but it seems none of the fields that include spaces can be retrieved.

E.g., columns 'Engage ID', 'Start Date', 'Final Delivery Method' all have (non-null) values for this record, but appear blank when printed in a Notify call.

 

llarocque_0-1709077600527.png

 

The notification bar appears as follows, with blanks for any column that is referenced with single quotes ' ' because they have spaces.

llarocque_2-1709077717740.png

Categories:
I have the same question (0)
  • llarocque Profile Picture
    6 on at

    While this still does not work as expected, I found a different approach for retrieving the desired fields from the parent account (household).

    I used a LookUp instead of relying on AsType alone.

    Before
    AsType(Self.Selected.Item.Household, Households).'Engage ID'

     

    This failed to retrieve anything, even when using the logical name instead of 'Engage ID'. The result was always blank.

     

    After
    LookUp( Households, Name=AsType(Self.Selected.Item.Household, Households).Name ).'Engage ID'

     

    This works. As mentioned in the OP, for some reason I am able to retrieve the name with

    AsType(Self.Selected.Item.Household, Households).Name

     

    so I just looked up the appropriate record (the same as the current household the user is viewing) and THEN specified the column I wanted to grab.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard