locked
how to cancel a case using sdk RRS feed

  • Question

  • Hi,

    I need to cancel a case and deactivate it and then reactivate it again in my custom app using sdk ,any ideas.


    Thanks Divya Ananth Our greatest glory is not in never falling but in rising every time we fall.
    Wednesday, April 21, 2010 9:54 AM

Answers

All replies

  • There is a message on for a Case named CloseIncident. See here http://msdn.microsoft.com/en-us/library/bb928300(v=MSDN.10).aspx

    Just use the setstate or setstatedynamic message to reactivate an incident.

     


    MSCRM Bing'd - http://bingsoft.wordpress.com

    Wednesday, April 21, 2010 10:00 AM
    Moderator
  • you can also user SetStateIncidentRequest as mentioned below..

     

    SetStateIncidentRequest

     

    req = new SetStateIncidentRequest();

    req.EntityId = IncidentId;

    req.IncidentState =

    IncidentState.Canceled;

    req.IncidentStatus = -1;

     

    SetStateIncidentResponse closeRes = (SetStateIncidentResponse)service.Execute(req);

    Wednesday, April 21, 2010 11:03 AM
  • thanks rhett and mayank
    Thanks Divya Ananth Our greatest glory is not in never falling but in rising every time we fall.
    Wednesday, April 21, 2010 11:07 AM