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)

how fetch the modal window on CRM?

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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.

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    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
    kiran_rajput Profile Picture
    775 on at

    yu.PNG

    not Done on crm window

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

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