Register an incoming call
•
Version: 10
Some tooltip text!
• Less than 1 minute to read
• Less than 1 minute to read
The activity type for phone calls is 5. By default, the direction is incoming.
This example code will register an incoming call with a description, starting now, and lasting 10 minutes.
DateTime start;
DateTime end;
end.addMin(10);
NSAppointmentAgent appointmentAgent;
NSAppointmentEntity incomingCall = appointmentAgent.CreateDefaultAppointmentEntityByTypeAndAssociate(5, 1);
incomingCall.SetActiveDate(start);
incomingCall.SetStartDate(start);
incomingCall.SetEndDate(end);
incomingCall.SetDescription("My favorite customer calling re migration.");
incomingCall = appointmentAgent.SaveAppointmentEntity(incomingCall);