Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

CRM2016: Address Finder ASP.NET Page Interactions - Advice

Posted on by 924

We've created an ASP.Net Address Finder page that searches our independent address database.

The plan was to place a button on the CRM ribbon (when on forms with addresses) that would popup the window, allow a fuzzy search and address selection, and then return the selected address to CRM to populate the form.

We had this working fine in CRM2011 via a java-script enabled ribbon button command, but are having difficulties adapting the code for CRM2016.

The problem is that the original code relied on "window.showModalDialog" to control popping up the form and accepting the returning parameters. Although that method still works with IE it doesn't with Chrome, and we really could do with a method that's supported by both browsers.

I've experimented with Xrm.Internal.openDialog, and although I like the light-box effect, I cannot get my asp.net buttons to close the page and fully return to CRM, and when called via chrome I just get a loading page animation and no asp.net page content.

This must be a common request to add value added functions to CRM, so what's the best method for calling out to an ASPX (not simple html) page and returning data to CRM whilst locking the CRM form until the operation is complete? Any suggestions gratefully received.

Regards

Steve

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

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans