locked
Case reactivation failed RRS feed

  • Question

  •  

    Hi,

     

    on my Case form i have one check box and one timedate field.

    when user click on Action --> Resolved case, check box gets ticked if it's not before and current timedate

    recorded on timedate field and then both the fields becomes readonly.

     

    I have written plugin with this settings to achieve this function.

     Event : 'pre-Stage' with

    message name  : 'close'  and

    entity name   :  'Incident'  in plugin registration tool.

     

    In my code i am getting this property bag with following line:

    DynamicEntity entity = (DynamicEntity)context.InputParameters.Properties["IncidentResolution"];

     

    Now, all this working fine but when user try to reactivate this resolved case then system crashes with following error:

     

    'The object cannot be updated because it is read-only.'

     

     

    Would anybody be able to help me out on this ?

     

    Many thanks in advance.

     

    Cheers.

     

    Friday, December 5, 2008 12:00 AM

Answers

  • Check if the Status Reason values for Active Status has been changed from the default one.  Check if there is "In Progress" value there with ID of 1.



    http://www.workopia.com/Links.htm
    Thursday, April 2, 2009 10:29 PM
    Moderator
  • Hi,

    You can not update a closed record, you would first need to setstate (see SDK, 'SetStateDynamicEntityRequest'), the run the update method.

    Morten
    Friday, April 3, 2009 2:21 PM

All replies

  • Check if the Status Reason values for Active Status has been changed from the default one.  Check if there is "In Progress" value there with ID of 1.



    http://www.workopia.com/Links.htm
    Thursday, April 2, 2009 10:29 PM
    Moderator
  • Hi Mate,

    This also happen to me a while ago.

    Its something to do with the customizations.

    What i would suggest is to save your old customizations of the Cases and then import the Vanilla CRM case customizations.

    Then slowly built your customizations while checking you can re-open a case.

    i hope this helps
    Friday, April 3, 2009 6:07 AM
  • Hi,

    You can not update a closed record, you would first need to setstate (see SDK, 'SetStateDynamicEntityRequest'), the run the update method.

    Morten
    Friday, April 3, 2009 2:21 PM