<< Return to help center
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

CreateTask Function Definition

The CreateTask function is used to add a task in your CRM. You can optionally attach tasks to contacts and assign them to other users.

When calling this function, the Function parameter sent to the API should be CreateTask.

Parameters

DueDate - The date the task is due. If you enter it in the past, it will show up as an overdue task. The format should be YYYY-MM-DD

Name - The name of the task. This is generally something like "Follow up with John Doe."

Description - Optional. Any additional information related to this task.

ContactId - Optional. The Id of a the contact this task is related to. Here are instructions for finding the correct ContactId. *Note: ContactId should be treated like a string, NOT an integer or any other number type.*

AssignedTo - Optional. If you want to assign this task to another user, pass their UserId using this parameter. Here are instructions for finding the correct UserId.

Example Code

This code shows you how to add a task using the API.

CODE: https://gist.github.com/tilikang/749d1c6d123bbd15836913469b03793c.js

Next up:
Keywords:
API, function, CreateTask
How do I can you are you able to can I how to is it possible