Hello everyone,
I’m working on a Dynamics 365 project and need to determine the entity type of a Quick Create form that was opened from a lookup field on another entity's form.
Here’s the scenario: I have two entities, Entity1 and Entity2. On the Entity1 form, there is a lookup field that allows users to create a new record of Entity2. When a user clicks on the “Create New Entity2” option from the lookup field on the Entity1 form, how can I programmatically determine that the Quick Create form that opens is for Entity2?
Is there a way to achieve this using JavaScript? Any help or example code would be greatly appreciated!
Thank you!