locked
Status reason value in Jscript in Mobile client always -1 RRS feed

  • Question

  • Hi,

    I am using the Status reason (statuscode) fields value in if clause in jscript in CRM 2013.  That works fine when using CRM through IE or Outlook Client. But the script fails when I am using it from IPad through Mobile client. When I debugged the script I found that the value of Status reason (statuscode) field is always "-1". No matter what I have choosed for the Status reason, the value is allways "-1". And as I mentioned, in IE or Outlook client it gives the right value.  The script I use to catch the value is: var lifeCyclePhase = Xrm.Page.data.entity.attributes.get("statuscode").getValue(); It catches the values of other fields perfectly

    So am I doing something wrong or is there something special with Status reason field?

    Wednesday, May 27, 2015 10:11 AM