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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans