Skip to main content

Notifications

Customer Service forum

Trying to hide the "Resolve Case" button in Case Entity and use the custom dialog box with "Total Time" and "Remarks" fields but not able to design the custom dialog box.

Posted on by Microsoft Employee

Hi Community,

I am trying to hide the "Resolve Case" button in Case Entity and use the custom dialog box with "Total Time" and "Remarks" fields but not able to design the pop up custom dialog box and sync it with my new customised button. I need to get the custom dialog box designed with the above two fields so that I can use both the fields to enter the data in the same way we do with "Resolve Case". How can I do this ?

Thanks,

Abhilash

ResolveCase.png

Categories:
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Trying to hide the "Resolve Case" button in Case Entity and use the custom dialog box with "Total Time" and "Remarks" fields but not able to design the custom dialog box.

    Hi Kiril,

    As per my requirement, I need to create an exact custom dialog box which I tried to create using javascript but not getting it on click of Resolve Case button. I am able to fetch the GUID of the case but unable to update the fields of the case. Also I tried to get the custom dialog box as pop up but not getting it like the dialog we get on click of Resolve Case button so performing it on a window but still the status of the case is not getting updated.

    pastedimage1569481089309v1.png

    On click on "OK", I am getting a new window.

    pastedimage1569481193621v2.png

    Now, when I click on the Resolve Case, the status of the case is not getting updated.

    Could you please provide me more assistance on this?

    Thanks,

    Abhilash

  • Radoslavov Profile Picture
    Radoslavov 380 on at
    RE: Trying to hide the "Resolve Case" button in Case Entity and use the custom dialog box with "Total Time" and "Remarks" fields but not able to design the custom dialog box.

    Hi Abhilash,

    As Leo Suggested you can create a custom dialog from Customizations > Customize the System > Processes >

    6840.PNG

    I've created a simple dialog asking for what resolves the issue and populating the user's answer in the resolution section of the case, and resolving the case after that.

    4382.PNG

    2100.PNG

    1007.PNG

    In order not to run the Dialog everytime by going to the case > Dialogs > Selecting the Dialog you can use Ribbon Workbench to create a Smart Button to start a Dialog or you can create a web resource JScript with the following code:

    function ResolveCaseDialog (dialogID, typeName, recordId)
    {

    //Load modal
    var serverUri = Mscrm.CrmUri.create("/cs/dialog/rundialog.aspx");

    window.showModalDialog(serverUri + '?DialogId=' + dialogID + '&EntityName=' + typeName + '&ObjectId=' + recordId, null, 'dialogWidth: 615px; dialogHeight: 480px; resizable: yes; status: yes, scrollbars:yes');

    //Reload form
    window.location.reload(true);
    Xrm.Page.data.entity.save("saveandclose");

    }

    Then add the JScript into a new button again using ribbon workbench

    8715.PNG

    You can create far more complex dialog then mine, the logic is the same I've just provided you the basic guidelines.

    Hope this will help you.

    If this answer is useful, please mark it as "verified".

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Trying to hide the "Resolve Case" button in Case Entity and use the custom dialog box with "Total Time" and "Remarks" fields but not able to design the custom dialog box.

    Hi Leo,

    Thanks for your help. I am trying to follow the solution which you have provided but not getting the "dialog" button from case and that is why not getting below dialog box. Can you please help me on this??

    pastedimage1569049764859v1.png

    pastedimage1569049786475v2.png

    Thanks,

    Abhilash

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Trying to hide the "Resolve Case" button in Case Entity and use the custom dialog box with "Total Time" and "Remarks" fields but not able to design the custom dialog box.

    Hi partner,

    It is possible to replace the OOB dialog.

    You could create a custom Dialog in process.

    pastedimage1568950244618v1.png

    And then add a custom ribbon in case form by RibbonWorkBench and add command to open the custom Dialog.

    You could refer to the following blogs for more steps and details.

    https://www.powerobjects.com/blog/2012/02/02/use-a-dialog-process-in-microsoft-dynamics-crm-to-replace-the-case-resolution-form/

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/240364/resolve-case-dialog

    Hope it helps.

    Best Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans