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 Apps
Answered

Record constants

(0) ShareShare
ReportReport
Posted on by 11

Hello,

I have the following PowerApps-code on a button and OnSelect-Event:

 

Patch(lst_Fahrtenplanung; Defaults(lst_Fahrtenplanung); {Status: "Planung"})

 

It's a SharePoint list "lst_Fahrtenplanung" with a DropDown-column "Status". The statement generates an error: {Status: "Planung"} is no record type. How can I define a Record constant?

 

Thanks for your help.

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    It can depend on the name of the value field in the dropdown, but in general your issue is that a dropdown is a complex data type and it expects a record not a value.  It should look something like this.

    Patch(lst_Fahrtenplanung; Defaults(lst_Fahrtenplanung); {Status: {Value: "Planung"}})

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard