How to Open Entity or View using URL

We can use URLs to open specific entities and views whenever we requires in our custom applications. The below are the scenarios to open entity forms and views using URLs.

NOTE : Use Xrm.Utility.openEntityForm when you open entity forms programmatically within the application by using web resources. Do not use the application, where pages do not have access to the Xrm.Utility.openEntityForm function, use or a link to open a specific record or form for an entity.

Open a new Entity Record:


E.g. : FOR new  contact :  http://crmurl/Org/main.aspx?etn=contact&pagetype=entityrecord

open a contact entity record form where the id is {81330924-802A-4B0D-A900-34FD9D790829}:

open the Active Contacts view for Microsoft Dynamics 365 (online) with no navigation bar or command bar{00000000-0000-0000-00AA-000010001004}&viewtype=1039&navbar=off&cmdbar=false

Click here to read more.