Navigation Property for Lookup Field in Xrm.WebAPI Create – How to use


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>)".


Article 17m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time