Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM 2016 Outlook Client Web Resources

Posted on by 1,266

Hi all

I'm currently in the process of testing our customisations in 2016 Update 1 prior to upgrade from 2015.  We have now enabled turbo forms now and made a few minor changes to some problematic scripts.  One area where I am still having problems though is with web resources within CRM for Outlook.  On our quote form we have a custom editable grid for products.  On this custom grid we have a + image that when clicked opens up a Product Picker web resource in a new window.  In 2015 we used this.opener.parent.Xrm.Page.getAttribute to retrieve attribute values from the parent page.  In 2016 we now get an error Unable to get property 'parent' of undefined or null reference.  In the web client this works fine but not in CRM for Outlook.  I have also tried window.top.opener.parent.Xrm with the same outcome.

Has anybody else encountered this issue and if so did you manage to find a solution?

As always my thanks in advance for any assistance anybody is able to provide.

Luke

*This post is locked for comments

  • Luke Sartain Profile Picture
    Luke Sartain 1,266 on at
    RE: CRM 2016 Outlook Client Web Resources

    Hi Andrii

    That's a great solution.  Keeps it consistent with the CRM layout.  

    I have however found the source of my problem.  The Product Picker was being opened from the custom grid using window.open.  Replaced that with Xrm.Utillity.openWebResource and now this.opener.parent is no longer returning undefined within the Outlook client.

    Thanks once again for the idea.  

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: CRM 2016 Outlook Client Web Resources

    Hello,

    I reused in-build dialogs functionality and as a result it worked fine for both web and outlook client. Check this article - butenko.pro/.../dynamics-crm-2013-step-by-step-creating-dialog-windows

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans