Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

Save & New Button on the UCI with Ribbon Workbench

  • 1.  Save & New Button on the UCI with Ribbon Workbench

    TOP CONTRIBUTOR
    Posted Jul 05, 2019 03:06 AM
    Using Ribbon Workbench in XRM Toolbox, I was able to enable the Save & New button, as described in https://www.cobalt.net/2018/03/26/save-new-button-go/

    However, it just does not want to work in the UCI. It shows up fine but is totally unresponsive.

    Does anyone have any ideas?



    ------------------------------
    Donal McCarthy
    Digital Marketing Administrator
    BrightWork
    Galway
    ------------------------------
    Conference-CRMUG_200x200


  • 2.  RE: Save & New Button on the UCI with Ribbon Workbench

    Posted Jul 08, 2019 07:41 AM
    Hi Donal,
    I have seen a few times in Ribbon workbench where the changes do not get published properly. Try publishing the changes again.I am assuming the issue is for all the users? If it is just one user or just a small group of users, then it could potentially be a cache issue on their browser as well.

    ------------------------------

    Nikhil Rajendran
    Aha Apps
    Glen Allen VA
    ------------------------------

    Conference-CRMUG_200x200


  • 3.  RE: Save & New Button on the UCI with Ribbon Workbench

    TOP CONTRIBUTOR
    Posted Jul 08, 2019 08:12 AM
    Hi Nikhil,

    Thanks for the response. I'm almost certain that this is a UCI-specific issue.
    I only have it enabled on my dev environment at the moment and it behaves the same in multiple browsers for me, i.e. works fine in the classic UI but does nothing in the UCI.  I've cleared my browser cache multiple times as well.

    I also added it fresh to the Lead entity to rule out any issues with the fact that it was originally on a custom activity that we enabled this.

    ------------------------------
    Donal McCarthy
    Digital Marketing Administrator
    BrightWork
    Galway
    ------------------------------

    Conference-CRMUG_200x200


  • 4.  RE: Save & New Button on the UCI with Ribbon Workbench

    Posted Sep 16, 2019 04:02 PM
    Hi Donal,

    I'm currently running into the same issue and was wondering if you ever found a working solution.  When I enable it in Ribbon Workbench it is visible (with puzzle piece icon) but upon click it does nothing.  I tried enabling it the same way for a different entity and had the same results.


    ------------------------------
    Patrick Matthews
    CRM Administrator
    Plante Moran
    Southfield MI
    ------------------------------

    Conference-CRMUG_200x200


  • 5.  RE: Save & New Button on the UCI with Ribbon Workbench

    TOP CONTRIBUTOR
    Posted Sep 17, 2019 02:55 AM
    @Patrick Matthews - no I did not find a solution and gave up.

    @Aaron Back, MCSE -  ​​I had and I tried the display and enable variations but no luck - thanks though!

    ------------------------------
    Donal McCarthy
    Digital Marketing Administrator
    BrightWork
    Galway
    ------------------------------

    Conference-CRMUG_200x200


  • 6.  RE: Save & New Button on the UCI with Ribbon Workbench

    Posted 30 days ago
    @Donal McCarthy  I did get this working but writing a JavaScript webresource and pointing the existing Save and New button at it.  In my circumstance I was using Connections and needed to retain the Connected From data.

    function SaveAndNew() { 
    Xrm.Page.data.save().then(OpenNewForm, function () { });
    Xrm.Page.ui.close();
    }
    
    function OpenNewForm() { 
    
    var parameters = {};
    
    if (Xrm.Page.getAttribute("record1id").getValue() != null) { 
    
    parameters["record1id"] = Xrm.Page.getAttribute("record1id").getValue()[0]; 
    parameters["record1idname"] = Xrm.Page.getAttribute("record1id").getValue()[0].name; 
    
    }
    
    
    Xrm.Utility.openEntityForm("connection", null, parameters);
    
    }  ​​
    ​​

    ------------------------------
    Patrick Matthews
    CRM Administrator
    Plante Moran
    Denver, CO
    ------------------------------

    Conference-CRMUG_200x200


  • 7.  RE: Save & New Button on the UCI with Ribbon Workbench

    TOP CONTRIBUTOR
    Posted Sep 16, 2019 04:18 PM
    @Donal McCarthy - Have you reviewed this article from @Scott Durow on how to get the buttons to work in the Unified Interface?

    https://community.dynamics.com/crm/b/develop1/posts/adding-ribbon-workbench-smartbuttons-to-the-unified-client ​​

    ------------------------------
    Aaron Back, MCSE
    Sr. Microsoft Dynamics 365 Consultant
    ACE Microtechnology
    _______________________________________
    CRMUG Board Member
    CRMUG Chapter Leader - Cincinnati, Ohio
    ------------------------------

    Conference-CRMUG_200x200


  • 8.  RE: Save & New Button on the UCI with Ribbon Workbench

    Posted 30 days ago
    @Donal McCarthy and @Patrick Matthews
    ​​Save & New button will not be working in Unified Interface anymore (unless Microsoft add the support to it) because the Save buttons are referencing to the new JavaScript library Main_system_library.js instead of the old RibbonActions.js.
    And in the legacy web client, the form seems to load both libraries so that "Save & New" button was working.
    In the new JavaScript library Main_system_library.js, only 3 Save commands are available
    • saveForm
    • saveAndCloseForm
    • saveAsCompleted
    Patrick's custom JavaScript web resource solution would be the only solution.

    ------------------------------
    Linn Zaw Win
    Senior Technical Consultant
    DXC
    ------------------------------

    Conference-CRMUG_200x200


  • 9.  RE: Save & New Button on the UCI with Ribbon Workbench

    TOP CONTRIBUTOR
    Posted 29 days ago
    Linn and Patrick - thanks - I will try the solution when I get a chance.

    ------------------------------
    Donal McCarthy
    Digital Marketing Administrator
    BrightWork
    Galway
    ------------------------------

    Conference-CRMUG_200x200


  • 10.  RE: Save & New Button on the UCI with Ribbon Workbench

    TOP CONTRIBUTOR
    Posted 28 days ago
    This isn't a Ribbon Workbench solution, but the October 2019 Wave 2 release includes a Save & Create New option on the Quick Create forms.

    ------------------------------
    Julie Reynolds
    Enterprise Information Steward II
    Brotherhood Mutual Insurance
    Fort Wayne IN
    ------------------------------

    Conference-CRMUG_200x200


If you've found this thread useful, dive deeper into User Group community content by role