locked
Save and New command not working with Appointment entity RRS feed

  • Question

  • Hi,

    I am using   Xrm.Page.data.entity.save("saveandnew"); with appointment entity for Save and New button function. When there is conflicting appointments, schedule alert popup window shows up with infinite loading and window gets frozen. Any help appreciated. 

    Thanks.


    nasayoo

    Wednesday, July 29, 2015 9:14 PM

Answers

  • figured out a solution.

    function OnSaveAndNew() {
        Xrm.Page.data.save().then(function () {
            setTimeout(function () {           
                    Xrm.Utility.openEntityForm("appointment", null, null, null);
            }, 5);
        }, null);

    }


    nasayoo

    • Marked as answer by nasayoo Friday, July 31, 2015 2:11 PM
    Friday, July 31, 2015 2:11 PM