Xrm.Page.data.save().then(successSave,errorSave) works in CRM 2013? RRS feed

  • Question

  • Hi community

    we have a CRM 2013 online instance. In a given entity, we have a plugin validation when the form is saved. We need to take some actions on the form depending on saving is successful or not. As CRM does not provide a js event fired after saving the form, we are trying to use this function from the SDK instead standard saving.


    Basically, on the form onsave event, we cancel the standard saving process to use this function, expecting than success and error handlers will be invoked depending on the operation result. It is true that using this function the form is saved, but we have checked that handlers are not beign invoked when the operation is finished.

    Have you tried this función? Did you use handlers successfully? Could you give me a working example of this function to see what is wrong in my code?

    Thanks in advance 

    Thursday, May 29, 2014 11:32 AM

All replies

  • I've successfully used this function using form scripting.  Are you still looking for an example?
    Monday, March 2, 2015 7:59 PM
  • It would be great if you could share some lines for sample!

    Thanks in advance

    Monday, March 2, 2015 10:10 PM