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 / Powerapps automaticall...
Power Apps
Unanswered

Powerapps automatically changes my code into something that doesn't function

(0) ShareShare
ReportReport
Posted on by 704

In an earlier post I had an issue with a collection that is Clearcollected from a table and shown in a gallery.

If I wanted to get to the record from the gallery that did not always work.

When viewing the collection in powerapps I noticed that there is an automatic Guid column in the table and thuis in the collection. In my case it is called cra27_diereventid. The Table is DierEvent. The Gallery is GalleryDierEvent

 

So if I do:

LookUp(DierEvent;cra27_diereventid=GalleryDierEvent.Selected.cra27_diereventid)

 

I get to the record and can do anything I like with it.

 

But at one point connection between gallery Item and record seemed lost and things stopped functioning.

I discovered that the line above had automatically changed to
LookUp(DierEvent;DierEvent=GalleryDierEvent.Selected.DierEvent)

 

Which does NOT function. No errors but no go.

Does this mean that everytime I publish my app from now I have to check if this line has not been "improved"?

Categories:
I have the same question (0)
  • SkiDK Profile Picture
    1,016 on at

    Check if this helps:

     

    LookUp(DierEvent, cra27_diereventid=GalleryDierEvent.Selected.cra27_diereventid)

    I don't think using a ';' works there.

  • Dimitri-VDL Profile Picture
    133 on at

    @SkiDKthis is due to the language of the Browser/Office, Dutch for example will use semicolons (;) instead of commas (,) ... This has not been an issue for me in the past.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @HansHeintz ,

    Is the cra27_diereventid a Unique Identifier type column in your DierEvent Entity?

    Have you turn on the "Relational data, option sets, and other new features for CDS" functionality within the Advanced settings of App settings of your app?

     

    Actually, the DierEvent is the Display name of the cra27_diereventid column (logical name) in your CDS Entity. Currently, when use column value of data source within an app, it would use the Display name rather than logical name as referenced column in default.

    Please check and see if the following blog would help in your scenario:

    https://powerapps.microsoft.com/en-us/blog/display-names-and-guids-for-canvas-apps-graduate/

     

    Based on the formula that you provided, I think it should work as expected. Please make sure you have turned on the "Relational data, option sets, and other new features for CDS" functionality within the Advanced settings of App settings of your app.

    Also please make sure the DierEvent is the Unique Identifier column/Primary Column in your CDS Entity. On your side, you could type the following formula:

    LookUp(DierEvent.

    then all available column names (Display name) would be shown up as below:2.JPG

    Note: The Unqiue Identifier column/Primary Column has same name as your CDS Entity. The screenshot as below:3.JPG

     

    Please consider take a try to re-create a new app based on your CDS Entity, then try the following formula:

    LookUp(DierEvent; DierEvent = GalleryDierEvent.Selected.DierEvent)

    or

    set the Text proeprty of a Label to following:

    LookUp(DierEvent; DierEvent = GalleryDierEvent.Selected.DierEvent, 'Primary Name')

    then check if the issue is solved.

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard