cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Z_Lukowski
Resolver I
Resolver I

Updating My collection Lookup field with a value from another collection (or table) - Error: Expected record but of a different schema

Hello,

So I have function Which should update my Collection1.Column1(lookup to Table1 record), I have a GUID of chosen record stored in Collection2.Column2

So I've tried:

A)

UpdateIf(
Collection1,
1 = 1,
{ Column1: Last(Collection2.Column2)}
);

Column1 is a lookup to record, 

Column2 is a guid of the record I want to create lookup

I receive an error "Expected record, but of a different schema"

 

B)

Also function

{Column1: Last(Table1)}

which would work because In Last table1 there is a stored record I want to create lookup to

But this "Last" function expected 2-3 arguments and received 1 - which is contradictory to my knowledge, because Last should only have a source

C)

Also tried to store guid in gallery and show gallery Item, but types don't match "expected record, received GUID" which is logical

 

Any Ideas, thoughts? 

 

 

 

Any solutions for case A or Case B?

I just want to update my collection Lookup record based on Last Record created from another table.

 

0 REPLIES 0

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,587)