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)

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

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