web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Javascript function to close multiple selected cases from a list view without the resolution dialogue

(0) ShareShare
ReportReport
Posted on by 2,165

Hi all,

Quick question. I know in javascript you can put in a custom function to close/resolve a single case without the annoying popup dialogue box asking for resolution details.

Now my question is with the ribbon workbench tool in the XRM toolbox. Is it possible to add a button on the case list view that allows you to resolve multiple cases based on what's checked on the grid/list view?

Haven't worked much with the ribbon workbench and not sure if this is possible as it's very annoying at the moment for users to resolve multiple cases at once.

I have the same question (0)
  • MikeC282 Profile Picture
    2,165 on at
    RE: Javascript function to close multiple selected cases from a list view without the resolution dialogue

    This is perfect. Thank you Andrew and Leo

  • Verified answer
    LeoAlt Profile Picture
    16,331 Moderator on at
    RE: Javascript function to close multiple selected cases from a list view without the resolution dialogue

    Hi partner,

    If you want to use JS wand workbench, you should consider two points.

    1.Show the ribbon on case home page and when select some records, it should pass the records' ids to JS method in ribbon.

    https://ribbonworkbench.uservoice.com/knowledgebase/articles/129783-pass-the-currently-selected-grid-row-s-to-a-custo

    2.Use web api to close cases.

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/closeincident?view=dynamics-ce-odata-9

    http://butenko.pro/2017/03/20/close-incident-using-webapi/

    Hope it helps.

    Best Regards,

    Leo

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Javascript function to close multiple selected cases from a list view without the resolution dialogue

    Hello,

    You can get the list of cases selected and call following code foreach of records - butenko.pro/.../

  • MikeC282 Profile Picture
    2,165 on at
    RE: Javascript function to close multiple selected cases from a list view without the resolution dialogue

    Thanks Leo,

    I thought about using a on demand workflow and will go with that if it's a last option.

    I was looking for a custom workbench ribbon just because it seems more elegant and is easier to navigate to as opposed to having to expand Flow and then your custom workflows. Is there any articles on potentially doing this using a custom javascript function? I can't seem to find any documentation on this anywhere.

    Kind regards,

    Mike

  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at
    RE: Javascript function to close multiple selected cases from a list view without the resolution dialogue

    Hi partner,

    There's a more easier way to resolve multi cases in case list by ribbon.

    We could use workflow to do this.

    1.Create an on-demand workflow on case.

    1616.pastedimage1582517510334v1.png

    Do not set any trigger conditions.

    2.Add an action to change status.

    0246.pastedimage1582517582734v2.png

    6332.pastedimage1582517594485v3.png

    3.Save and activate. Let's have a test.

    Now we go back to case list and click on "Flow" ribbon, and we will find the workflow we created.

    So select the cases which we want to resolve, and then click on "resolveCase" to run the workflow.

    7144.pastedimage1582517764380v4.png

    After a little time, we will find that all the 3 cases have been resolved.

    0412.pastedimage1582518048680v5.png

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 100 Super User 2025 Season 2

#2
Suresh Kulla Profile Picture

Suresh Kulla 72 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 53

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans