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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (63,901)