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 Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (89,339)