This article explains how to assign values to lookup fields in Xrm.WebAPI requests in JavaScript for Dataverse Power Apps. For single entity lookup fields, use the format "<SchemaName_of_LookupField>@odata.bind": "/<setnameofentity>(<id_of_parent_record>)". For example, "sbi_BankAccount@odata.bind": "/sbi_sbibankaccounts(" + currentBankAccountRecId + ")". The schema name can be found in the Solution -> Table -> Field -> Property -> Schema Name. For polymorphic entity lookup fields, append the target entity logical name to the schema name of the column. For example, "<SchemaName_of_LookupField>_<targetentitylogicalname>@odata.bind": "/<setnameoftargetentity>(<id_of_parent_record>)".
Login now to access my digest by 365.Training