'update_activity' Command

The command affects only the specified activity. The command is alias for 'update_appointment' command. It works as follows:

1) If no activities with specified key field values exist in the system:

1a) new activity is inserted

1b) fields, properties, and customer inventory is set for it, as specified in the request.

2) If a pending activity with specified key field values exists in the system:

2a) its date, resource, fields, properties and inventory is updated/replaced as set in request

2b) all duplicating activities are deleted/canceled.

3) if a 'started', 'cancelled' by user, 'completed', and 'notdone' activity with specified key field values exists in the system, it is processed in accordance with its 'action_if_completed' meaning

Note:
see Updating/Replacing Properties section for more details on the 'update_activity' work.