Skip to main content

Notifications

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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans