cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CliveMM
Level: Powered On

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
Level 10

Re: Need to copy records from one table to another

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

View solution in original post

3 REPLIES 3
eka24
Level 10

Re: Need to copy records from one table to another

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

View solution in original post

CliveMM
Level: Powered On

Re: Need to copy records from one table to another

Thank you, that helped me fix it

eka24
Level 10

Re: Need to copy records from one table to another

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

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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