Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Add two commands in Custom Button D365

(0) ShareShare
ReportReport
Posted on by 2,285

Hi All,

I Got a new Requirement, i have created Custom Ribbon Button in CASE that need to trigger OOB Resolve Functionality FIRST then once the process done then i need to trigger SECOND JS code.

Is there any way to achieve or any way to get the Response from the CrmService.IncidentRibbon.CommandBarActions.resolve FUNCTION

$webresource:Service/Incident/Ribbon/Incident_ribbon_library.js

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Add two commands in Custom Button D365

    Hi,

    This is internal undocument function  so not sure if you can get a response. Even if you get a response, there is a possibility that this can change in future. Instead of this, create a custom button, call you custom action, within that custom action, call a custom workflow activity which resolves the case and return you success/ fail., you then return that status from your custom action to javascript and based on the response you can then execute your next code bloc.

    Hope this helps.

  • Suggested answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: Add two commands in Custom Button D365

    Hi,

    I am not sure you can get response from resolve function.. if your custom javascript is not doing anything related to user interface like showing messages, redirecting etc.then you might need to consider writing plugin or workflow when case is resolved.

    In case you have to call custom JavaScript, you might try adding some delay after resolve function and then verify case status again.. if it resolved call your custom javascript.

    Hope this will help..

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans