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)

HTML webresource - accessing parent form data or calling javascript file

(0) ShareShare
ReportReport
Posted on by

Using CRM 2016 on premise version 8.0.1.97

On a form after user clicks a button an html webresource is displayed in a new window .  In our current 2011 on premise environment this works fine and we can obtain data from the calling form using the ClientGlobalContext.js.aspx

sample code: 

<script type="text/javascript" src="ClientGlobalContext.js.aspx"></script>
    <script type="text/javascript" src="aprv_WebApiHelper"></script>
var parentPage = window.parent.opener;
In 2016, specifically in the Outlook client, getting parent info is not working. Tried various ways and no luck.  Furthermore, only in the Outlook client (2016 client), calling another custom JS file
is not working. In above case if I attempt to call a function in the above aprv_WebApiHleper file it is null or undefined.
If using web-client there is no issue.

I have managed to work around the issue of parent data by passing custom parameters but I cannot get the javascript function call to work.




*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)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans