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 / Patching using Default...
Power Apps
Unanswered

Patching using Defaults in DV when a column is a Lookup

(0) ShareShare
ReportReport
Posted on by 421

Hi everyone, good afternoon.

 

I am trying to patch new records to a table in the Dataverse using a collection.  When I add to the collection using this code, the checkbox code works fine.

 

Collect(
colBulkGameAddMultipleStores,
{
CurrentStoreName: ThisItem.NewStyleLocation,
GameAssetStatus:ComboboxCanvas4.Selected.Value,
ICRCount:ComboboxCanvas3.Selected.'ICR Count',
GameCabinetManufacturerVendor:ComboboxCanvas3.Selected.'Game Vendor',
TitleGame: ComboboxCanvas3.Selected.GameName
}
)

 

When I try and patch to the table using the code below, it states an error that gamecabinetmanufacturervendor is a record and its looking for text.    gamecabinetmanufacturervendor is a Lookup column to the Master Asset List.

 

 

ForAll(
colBulkGameAddMultipleStores,
Patch(
AmusementAssets,
Defaults(AmusementAssets),
{
CurrentStoreName: ThisRecord.CurrentStoreName,
TitleGame: ThisRecord.TitleGame,
ICRCount:ThisRecord.ICRCount,
GameCabinetManufacturerVendor:ThisRecord.GameCabinetManufacturerVendor,
GameAssetStatus: ThisRecord.GameAssetStatus
}
)
)

 

Thanks everyone!!

 

Chris

Categories:
I have the same question (0)
  • ckserra33 Profile Picture
    421 on at

    Ok I figured it out, just needed an additional .___at the end.  Thanks everyone!

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard