Creates a new Task.

Parameters

etype

The Task type ID.

clientId

The Customer ID.

subject

Short textual description of the task.

details

Further textual details of the task.

resolution

Outcome of the task when completed.

assignedTo

User ID of the user assigned to the task.

eStatus

New - 0, Open - 1, Closed - 2

due_date

Date the Task is due to be completed by the latest.

privacy

Private - 0, Public - 1

time_spent

Period of time spent completing the task.

Example

FM_api('Task_create', array('etype' => '1',
                            'clientId' => '8',
                            'subject' => 'TEST SUBJECT',
                            'details' => 'TEST DETAILS',
                            'resolution' => '',
                            'assignedTo' => '82878',
                            'eStatus' => '0',
                            'due_date' => '2018-10-03 10:00:00',
                            'privacy' => '1',
                            'time_spent' => ''));

On Success

{'ok':1,'id':12}