Recently i cam across this library in CRM 2013. And I found a lot of helpful methods which could facilitate you during your development. Please check for the screenshot below which shows some of the methods.
1. Xrm.Internal.getEntityName(<entitytypecode>) – you pass in the entitytypecode and get the logical name for the entity
2. Xrm.Internal.getEntityCode(“<logicalname>”)– you pass in the entity logical name and get the objecttypecode. This is very useful where you can need the entitytypecode in the form
Check for the screenshot below to see the usage of the above two methods
Besides these other utility methods are:
3. Xrm.Internal.openDialog– this you can use to show a modal dialog in a similar manner in which CRM 2013 shows the modal dialogs.
4. Xrm.Internal.openErrorDialog – this you can use to show an error dialog like CRM 2013.
Check out the following link to see how to use…
View original post 39 more words