Announcements
No record found.
Hi Partners,
Can anyone help with a better/quicker way or tools that can easily tell an entity name of a particular form in CE/Sales?
I am in this form, and i want to quickly tell if it is an account entity or a custom entity.
Thanks
Hi,
You can try to use the following code to get the logical name of the entity:
function getNmaeAndType(executionContext){ var formContext = executionContext.getFormContext(); var entityName = formContext.data.entity.getEntityName(); }
You can trigger it by binding the Onload event:
https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/customize/configure-event-handlers-legacy?view=op-9-1#to-configure-an-event-handler
You can judge whether it is custom by the prefix of the logical name.
If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.
Best Regards,
Frank Gong
Or you can view it in App Designer:
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ManoVerse 192 Super User 2026 Season 1
11manish 129
CU11031447-0 100