locked
save error in crm 2011 RRS feed

  • Question

  • our company use crm 2011 but sometimes some users get error when phone call is saved.

    this error is not occur always when i try to save same phone call which user gets errors i dont get any errror.

    there is a js code on save

    else if(Xrm.Page.getAttribute("new_couponsituation").getValue()=='100000001' && Xrm.Page.getAttribute("new_date").getValue() ==null)
    {
    alert('Enter Coupon!');
    executionObj.getEventArgs().preventDefault();


    }
    else

    {
    phonelcallsave();
    executionObj.getEventArgs().getSaveMode();

    }

    }

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

    function phonelcallsave()
    {

    var lookupItem=new Array();
    lookupItem=Xrm.Page.getAttribute("new_directionid").getValue();
    if(lookupItem !=null)
    {

    if(lookupItem[0].name=='Outgoing')
    {

    var subject="Outgoing Call";
    Xrm.Page.getAttribute("subject").setValue(subject);
    Xrm.Page.getAttribute("subject").setSubmitMode("always");


    }
    else  if(lookupItem[0].name=='Incoming')

    {


    var selectedOptionSet=Xrm.Page.getAttribute("new_subjects").getSelectedOption().text;
    Xrm.Page.getAttribute("subject").setValue(selectedOptionSet);
    Xrm.Page.getAttribute("subject").setSubmitMode("always");

    }

    }




    }


    Software Specialist Crm

    Thursday, March 1, 2012 12:52 PM

Answers

  • error message is the classic crm errror message which is microsoft dynamic crm has an error is occured

    tracing is not enable i cant open it right now

    only some users get this error. is it about user permissions?

    i just want to wonder is there any error on my js code?


    Software Specialist Crm


    Thursday, March 1, 2012 1:52 PM

All replies

  • Hi

     It would be helpful if you can also post the Exact error Message its displaying onSave

     If you are able to reproduce or recreate the error , then please try to debug the code

     this would pin point exact line where it occuring

     you Developer tool bar to debug.

    hth

    dkay

     

    Thursday, March 1, 2012 1:32 PM
  • error message is the classic crm errror message which is microsoft dynamic crm has an error is occured

    tracing is not enable i cant open it right now

    only some users get this error. is it about user permissions?

    i just want to wonder is there any error on my js code?


    Software Specialist Crm


    Thursday, March 1, 2012 1:52 PM