Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

HTML webresource - accessing parent form data or calling javascript file

Posted on by Microsoft Employee

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans