We have a helper javascript file that contains various web-api functions. In that file we use the Xrm.Page.context.getVersion(); to get the CRM Api version.
This works fine when calling this file from another webresource javascript file.
However, in a few cases we have a javascript file on the form that calls opens an html dialog. It also calls the above helper file but when it does the above Xrm.Page.context.getVersion() returns undefined.
Is there a way to get this ?
Thanks
*This post is locked for comments