[quote user="wperkinson3"]
Good afternoon,
I am testing our Dynamics environment under version 9.0 and I am finding several custom Javascripts are not working due to the use of Xrm.Page
Can someone guide me on how to proceed in converting such functions as the following?
Thank you,
Will
============================
function addTask() {
Xrm.Utility.openEntityForm('task', null, {
pId: Xrm.Page.data.entity.getId().replace(/{|}/g, ''),
pType: Mscrm.EntityPropUtil.EntityTypeName2CodeMap[Xrm.Page.data.entity.getEntityName()],
pName: Xrm.Page.getAttribute('name').getValue()
});
}
[/quote]
How to get executionContext or formContext in HTML Web Resource?
*This post is locked for comments