cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CliveMM
Helper I
Helper I

Need to copy records from one table to another

Hello

I am trying to copy all the records from one Excel table called Questions into another Excel Table called Items. The Questions table contains the template questions. The items table contains the Item set ID and a few other fields like 'response' that are completed at run time.  I believe this is the right code to use, but it does not work. 

 

ForAll(Questions, Patch(
Items,
Defaults(Items),
{ID: 1004},
{Item: Questions.Question},
{Ref: Questions.Ref}))

 

Verification says the function patch has dome invalid arguments, and that Ref and Items do not match the expected type for text. Found Type Table

 

Help Please!

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User III
Super User III

ForAll(Questions, Patch(Items,
{ID: 1004},
{Item: Questions.Question},
{Ref: Questions.Ref}))

View solution in original post

3 REPLIES 3
eka24
Super User III
Super User III

ForAll(Questions, Patch(Items,
{ID: 1004},
{Item: Questions.Question},
{Ref: Questions.Ref}))

View solution in original post

Thank you, that helped me fix it

eka24
Super User III
Super User III

can you accept it as solution or give it a thumps up it it helped in resolving the issue

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,584)