I am getting below error while loading email for in IE. Same code, form is working fine in Chrome for email load. In fact the similar code is working is working fine on other entities.
FYI: I am on Dynamics 365 9.0.2 and not using Legacy form render.
How can I resolve it?
ReferenceError: 'po' is undefined
at eval code (eval code:1:1)
at RunHandlerInternal (xyz.crm.dynamics.com/.../ClientApiWrapper.aspx)
at RunHandlers (xyz.crm.dynamics.com/.../ClientApiWrapper.aspx)
at OnScriptTagLoaded (xyz.crm.dynamics.com/.../ClientApiWrapper.aspx)
at Anonymous function (xyz.crm.dynamics.com/.../ClientApiWrapper.aspx)
Sample code:
if (typeof(po) == "undefined") { po = { __namespace: true }; } if (typeof(po.Library) == "undefined") { po.Library = { __namespace: true }; } if (typeof ($) === "undefined") { $ = parent.$; jQuery = parent.jQuery; } po.Library.Email = { LoadForm: function () {
// logic goes here.
}
__namespace: true };
*This post is locked for comments