locked
convert activity into history RRS feed

  • Question

  •  

    Hi

     

               I send fax programatically, as I send it I can easily create an activity too but I just want to change that acitvity into history immediately.

     

    Cheers

     

     

    Tuesday, December 4, 2007 11:31 PM

Answers

  • This is the code I am using to set the state to completed after creating the fax activity.

     

     SetStateFaxRequest requestSetState = new SetStateFaxRequest();
     requestSetState.EntityId = newFaxId;

     requestSetState.FaxState = FaxState.Completed;
     requestSetState.FaxStatus = -1;
     SetStateFaxResponse responseSetState = (SetStateFaxResponse)Service.Execute(requestSetState);

    Wednesday, December 5, 2007 7:13 PM

All replies

  • Hi Hassanz,

     

    Why not set the statecode??

     

    0 - Open

    1 - Completed

    2 - Canceled

     

    0 is listing in Activity

    1,2 are listing in History

     

     

    Cheers,

    Jim

    Wednesday, December 5, 2007 11:13 AM
    Moderator
  • This is the code I am using to set the state to completed after creating the fax activity.

     

     SetStateFaxRequest requestSetState = new SetStateFaxRequest();
     requestSetState.EntityId = newFaxId;

     requestSetState.FaxState = FaxState.Completed;
     requestSetState.FaxStatus = -1;
     SetStateFaxResponse responseSetState = (SetStateFaxResponse)Service.Execute(requestSetState);

    Wednesday, December 5, 2007 7:13 PM