Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Custom Webform In Dynamics CRM

Posted on by Microsoft Employee

Is have created webfrom using C# to import excel file into Dynamics CRM. Now i want to call this page from custom button in CRM.I have been searching on the internet about the way to call webform from Custom Button In CRM, but i couldn't find yet. 

The question is "Is that possible to call C# webform from custom button in CRM ?" For the custom button i used ribbon workbench.

*This post is locked for comments

  • Suggested answer
    keyur7379 Profile Picture
    keyur7379 900 on at
    RE: Custom Webform In Dynamics CRM

    Hey Fikri,

    As you said your system did not have internet access means you are using CRM On-premise Right ?

    If your system did not have internet then you should host your website in your local system

    Please refer this URL : http://www.dotnetfunda.com/articles/show/1247/how-to-host-aspnet-application-on-the-web-server-iis

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom Webform In Dynamics CRM

    Hi Fikiri,

    First you have to host your webform in ISV folder(IIS) and take the URL, after that you can use the script or mention the URL in action command of your button(whatever suggested by Keyur).

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom Webform In Dynamics CRM

    Hii Ranjith,

    the "path of your webrofm" you mention earlier. Is that the path of the folder that contain webform file ? or should i host my webform just like keyur suggested and get the url of the hosted webform

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom Webform In Dynamics CRM

    Hi keyur,

    How to host C# webform ? Since there is no internet access in the computer

  • Suggested answer
    keyur7379 Profile Picture
    keyur7379 900 on at
    RE: Custom Webform In Dynamics CRM

    Hey Fikri,

    Yes It is possible.

    1. If your C# web form is already hosted then get URL of this web form.

    2. Go to ribbon customization and select custom button which you have created.

    3. Navigate to the Solution Elements Panel → Commands → (Right Click) → Add New

    4. Right click on Command → Edit Action →  Add URL of your hosted web form.

    Please check this video for how to open web form URL using Ribbon customization :

    https://www.youtube.com/watch?v=-FR6EajFVrM

    If found useful, please mark the answer as verified.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom Webform In Dynamics CRM

    Hi Fikri,

    you can use below script for calling your web form

    var dialogOption = new window.parent.Xrm.DialogOptions;
    dialogOption.width = 1000; dialogOption.height = 600;
    window.parent.Xrm.Internal.openDialog("Path of your webform",
    dialogOption,
    null, null,
    CallbackFunction);

    Thanks & Regards

    Ranjith Kunnath

    If  it found useful, please mark the answer as verified.

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans