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 / Formula-Defined Record...
Power Apps
Answered

Formula-Defined Records Different Than Inline-Defined?

(0) ShareShare
ReportReport
Posted on by 176
I have a Dataverse table "Fruit", with a single column "Name".
 
I am attempting to use a record defined in a formula:
 
 
in my Patch() function, but I'm getting errors like this:
 
 
If I change the formula record to use the publisher prefix it works, but I would like to know if that's truly the only solution. I'd much rather use the "display" names as if you were defining the record within Patch():
 
 
Why are they different from each other?
I have the same question (0)
  • Sunil Kumar Pashikanti Profile Picture
    2,318 Moderator on at
     
    This happens because inline records inside Patch are schema‑aware, but formula‑defined records are not shcema-aware. 
         When you define a record inside Patch, Power Apps knows it belongs to your Dataverse table and automatically maps the display name (Name) to the internal column name.
         When you create a standalone record variable, Power Apps treats it as a generic record with no table context, so display names can’t be resolved. In that case you must use the internal (publisher‑prefixed) column names.

    So yes, if you're building the record outside Patch, using the internal column names is the correct and expected approach.
     
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
  • Suggested answer
    11manish Profile Picture
    3,333 on at
    They are different because:
    Inline record = context-aware (uses display names)
    Variable record = untyped (requires logical names)
    • This is by design in Power Fx
    • Not a bug
  • Verified answer
    timl Profile Picture
    37,214 Super User 2026 Season 1 on at
     
    In this instance, the way I would do this is to create a typed record in your formula.
     
    DefaultFruitRecord = Fruit@{Name:"Raspberry"}
    Since this 'formula' record is now typed, you can pass it to your call to Patch, without you needing to use the logical/publisher prefixed column names.  
     
    Patch(Fruit, 
          Defaults(Fruit),
          DefaultFruitRecord
    )
     
  • BenKraft Profile Picture
    176 on at
     
    This is exactly what I was looking for! Thank you so much, appreciate the solution-searching. Do you happen to have any docs reference for that kind of syntax or record-typing of that sort? Had no idea it even existed. Is it all contained within the discussion of Type() / RecordOf()?
  • timl Profile Picture
    37,214 Super User 2026 Season 1 on at
     
    Thanks for the update. I'm glad that helped!
     
    I did search the Microsoft Learn documentation before I replied initially but I couldn't find any details. I'm not even sure it's been properly documented.
     
    I found out about this syntax through Carlos from the Microsoft Power Apps team. This was at a time that predated UDFs and the app formula property. Beyond the post I wrote at the time below, I unfortunately can't find anything official about this syntax. 
     
     
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard