web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Referencing js file from within an html webresource in Outlook client

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans