We have established a relationship between the Entities table, the Lead table, and the User table, allowing us to pull relevant data from the User table when a new Lead is created by a specific user.
To achieve this, we developed a JavaScript function that retrieves and autopopulates the ng_test_lead field in the Lead form by pulling the corresponding value from the User entity. However, while executing the script, we encountered the following error:
> "Could not find a property named 'ng_test_leadid' on type 'Microsoft.Dynamics.CRM.ng_entities'."
Upon further investigation, we have confirmed that:
-
The schema name and logical name for ng_test_lead were verified and found to be correct in Dataverse.
-
The lookup field structure may require $expand, but the expected sub-properties (ng_test_leadid) seem to be missing.