crm.activity.todo.add
crm.activity.todo.add( { ownerTypeId: number, ownerId: number, description: string, deadline: DateTime, responsibleId: number } )
Adds an activity
Parameters
Parameter | Description |
---|---|
ownerTypeId | ID for activity item type (list with available types) |
ownerId | Activity item ID |
description | Activity text |
deadline | Activity deadline |
responsibleId | Responsible for an activity |
Result will contain id - created activity ID.
Example
Use case
crm.activity.todo.add?ownerTypeId=2&ownerId=1&deadline=2022-12-31T15:00:00&description=Contact the client
Successful result:
{ "result": { "id": 243 } }
© «Bitrix24», 2001-2024