cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How to update records from table to another table without canvas view (dispaly gallery)

Hi,

 

I have  two tables, table CollectProduct And ExcelProduct 

 

CollectProduct has two columns Code And Description

ExcelProduct has two columns Code And Description

 

I want to update all records From CollectProduct to ExcelProduct where CollectProduct [@Code] = ExcelProduct[@Code], without canvas view (display gallery)

3 REPLIES 3
Highlighted
Super User III
Super User III

Hi @alisystem ,

Something like this should do it

ForAll(
   ExcelProduct As wExcel,
   Patch(
      CollectProduct,
      {Code:wExcel.Code},
      {Description:wExcel.Description}
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted

Thank you WarrenBelz for your reply, but I have an error The data source supplied to the function is invalid

Error on

 

 Patch(
      CollectProduct,
      {Code:wExcel.Code},
      {Description:wExcel.Description}
   )

 

 

 

Highlighted

@alisystem ,

I am using your values - you stated

CollectProduct has two columns Code And Description

and I am simply patching to it in the two columns you provided. The error suggests CollectProduct does not exist. Also I assume you included the ForAll code as wExcel will not exist without it.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,863)