Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

how fetch the modal window on CRM?

Posted on by 775

Hello Experts,

How I fetch Modal Window on CRM Page .

When I Open my Org then first popup Modal Window on crm. I will coded and design Modal Window using Html, CSS and JavaScript but how i fetch ?

Please Help Me.

Thanx In Adavance.

*This post is locked for comments

  • Verified answer
    kiran_rajput Profile Picture
    kiran_rajput 775 on at
    RE: how fetch the modal window on CRM?

    yu.PNG

    not Done on crm window

    i use html web resource to crm form and it look like this picture

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: how fetch the modal window on CRM?

    The modal dialog in CRM is an Internal Microsoft dialog, and should not be used for development purposes, since Microsoft might change their internal code base, and the dialog will stop working.

    If you still decide to use the dialog (regardless of this), you can call it using the following options:

       var DialogOption = new Xrm.DialogOptions;

       DialogOption.width = 600; DialogOption.height = 450; // There are other options

       Xrm.Internal.openDialog("/WebResources/new_mydialog.html", DialogOption, null, null, myDialogCallback);

    Your callback function would look like the following

    function myDialogCallback(callbackValue)

    {

    }

    Inside your web resource, if you would like to return values to the script page above:

    Add the following to your header:

       <script type="text/javascript" src="/_common/ClientGlobalContext.js.aspx"></script>

    Add the following to your OK button click:

                   Mscrm.Utilities.setReturnValue(selectedOption);

                   closeWindow(true);

    Hope this helps.

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: how fetch the modal window on CRM?

    Hello,

    To retrieve data from CRM you can use WebApi.

    To make your life easier, write less code and design webapi queries easier you can use RestBuilder solution - github.com/.../2.5.0.0

    Good luck.

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