UiPath Documentation
activities
latest
false

Productivity activities

CreateTask

Creates a new task in the specified task list.

Namespace: UiPath.GSuite.Activities.API

Assembly: UiPath.GSuite.Activities.API (in UiPath.GSuite.Activities.API.dll)

Syntax

ITask CreateTask(
	ITaskList list,
	string title,
	string description = null,
	DateTime? dueDate = null,
	GTaskStatus status = GTaskStatus.NeedsAction,
	string parentTaskId = null
)
ITask CreateTask(
	ITaskList list,
	string title,
	string description = null,
	DateTime? dueDate = null,
	GTaskStatus status = GTaskStatus.NeedsAction,
	string parentTaskId = null
)

Parameters

list ITaskList : The task list to create the task in.

title String : The title of the new task.

description String (Optional) : An optional description for the task.

dueDate DateTime? (Optional) : An optional due date for the task.

status GTaskStatus (Optional) : The initial status of the task. Default is GTaskStatus.NeedsAction.

parentTaskId String (Optional) : An optional identifier of the parent task.

Return value

ITask - The newly created task.

  • Syntax
  • Parameters
  • Return value

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated