cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Champion
Community Champion

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
Highlighted
Community Champion
Community Champion

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

Highlighted
Helper I
Helper I

Re: Need to copy records from one table to another

Thank you, that helped me fix it

Highlighted
Community Champion
Community Champion

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,030)