Using CRM 2016 on premise version 8.0.1.97 with 2016 Outlook client running on Office 365 Windows 10
We have a custom entity with a button that when pressed opens an html page via Xrm.Utility.openWebResource
The html webresource has references to several js files in particular the one below:
<script type="text/javascript" src="aprv_WebApiHelper"></script>
The above file is a helper file containing various web-api calls broken down into various functions
ex - WebApiHelper = {
WebApiHelper.Project = {
Retrieve: function (id) {
}
web-api call here
};
};
On the html page that is generated, once the user clicks an 'ok' button we make a call to the above web-api helper file:
Ex - var Info = WebApiHelper.Project.Retrieve(someID);
All of this works perfectly fine in a web browser (IE, Chrome, Edge)
However, if performing the same steps with a record opened in the Outlook client the "Project" in the above WebApiHelper.Project.Retrieve is null or undefined.
I tried messing with the path of the js file reference for the WebApiHelper file but then it could not be found when using IE.
Suggestions would be appreciated.
Thanks
*This post is locked for comments
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6