Hi @HelloThereAll ,
For setting the lookup field the logic is a little different.
Patch(
Tbl_SupplierDetails,
Defaults(Tbl_SupplierDetails),
{
Title: LblContractNumber.Text,
ContractNumberID: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: LookUp(
Tbl_MC,
ContractNumber = LblContractNumber.Text,
ID
),
Value: LblContractNumber.Text
}
}
)
Note: Please change all the variables and data sources as per your need.
I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.
Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.