Tuesday, November 26, 2013

Window.Open method in CRM 2013

To open an CRM 2013 entity record in a new window using Window.Open we need to pass the following parameters as query string.



Open a new entity record.
window.open("https://contoso.crm.dynamics.com/main.aspx?etn=account&extraqs=&histKey=647827476&newWindow=true&pagetype=entityrecord", "", "status=0,resizable=1,width=1000px,height=600px");
Open an existing entity record.
window.open("https://contoso.crm.dynamics.com/main.aspx?etn=account&extraqs=&histKey=647827476&id={02c2e648-0acd-41f0-9ca8-d8d131e5f47b}&newWindow=true&pagetype=entityrecord", "", "status=0,resizable=1,width=1000px,height=600px");
Note: Incase you need to add 'form id' as query string parameter, it should be the first parameter next to 'extraqs'
Open a new entity record along with form id.
window.open("https://contoso.crm.dynamics.com/main.aspx?etn=account&extraqs=&formid=c7c2637c-fc20-47eb-8cb8-b8f1354bfcd0&histKey=647827476&newWindow=true&pagetype=entityrecord", "", "status=0,resizable=1,width=1000px,height=600px");

No comments:

Post a Comment