appointment_id | ID of the appointment to open. If set, the appointment will be opened. For new appointments, this should be set to 0. |
appointment_type | Type of the appointment. 5 = Todo, 6 = Phone. Anything else is considered a meeting. This will be used to select the task type. |
tasktype | ID of the task type to use for the new appointment. This lets you set an actual task instead of the default meeting, default phone and so on from appointment_type |
appointmenttitle_name | Title of the new appointment. |
appointmentagenda_name | Agenda of the new appointment (HTML). |
appointmentdescription_name | Description of the new appointment (plain text). |
doby | Start date when creating new appointment. Format: YYYY.MM.DD HH:mm. Can be without time information. |
enddate | End date when creating new appointment. Format: YYYY.MM.DD HH:mm. |
length | Duration when creating new appointment - set instead of enddate. If both are set, length wins. |
usedefaulttime | Indicates that the doby/enddate parameters above are missing the time component, and the default time should be used. |
calendarassociate_id | The owner when creating a new appointment. |
useprojectcurrent | If true, sets ”current” project on the new appointment. For example, when creating an appointment from the project activity archive. |
usesalecurrent | If true, sets ”current” sale on the new appointment. For example, when creating an appointment from the sale activity archive. |
reopen | If true, uses the current sale and CreateDefaultReopenAppointment() to create the new appointment. Set when stalling a sale. |
groupview | If present, the appointment is created from the group view (Diary > View). Any text value will enable this. |
addparticipants | If present and groupview is set, adds participants from the current group view automatically. If not set, checks preferences for invite behavior. |
basedon | Appointment ID to use as the base of the new appointment. Conflicts with reopen. If both are set, reopen wins. |
suggestedappointment_id | Appointment ID to use as the base of the new appointment. Conflicts with similar parameters, and the other parameters will win. |
entity | Entity to use with suggestedappointment_id. Can be “project” or “sale”. Defaults to “sale” if unset but suggestedappointment_id is provided. |
assignto | If set to any string value, the appointment will be assigned to the requested owner. |
create | Parameter passed to CreateDefaultAppointmentEntityFromSaleSuggestion(). Should be “true” or “false”. |
pids | Comma-separated list of person IDs to invite. |