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
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);
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);
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