UpdateTasks

UpdateTasks

Inputs (Array[] to update)

Name

Type

Description

Mandatory

Available from version

BrickId

Guid

The BrickId (unique id) of the task.

Yes

New method in 2.24

User

Guid

The user that the task is associated to. 

 

 

Administrator

Guid

The admin user the task is associated to.

 

 

Heading

string

The heading of the task.

 

 

Text

string

The text of the task.

 

 

DueDate

DateTime

The due date of the task.

 

 

IsHTML

bool

If the text of the task contains html this should be set to true.

 

 

Priority

string

Which priority the task should have. Allowed values are: "High", "Medium", "Low".

 

 

Status

string

Which status the task should have. Allowed values are: "Created", "InProgress", "Done", "Closed".

 

 

Outputs

Name

Type

Description

Available from version

Entities

Array

All tasks in the request is returned along with each tasks BrickId and array of Errors per task

 

Code examples

public static void UpdateActivityLogTask() { var binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = Int32.MaxValue; var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://localhost:20010/bfsapi.asmx")); var req = new UpdateTaskRequest(); req.Credentials = new bfsapi.Credentials { UserName = GetApiUserName(), Password = GetApiPassword() }; req.identify = GetApiIdentifier(); req.Fields=new UpdateTaskFields { Heading = true, Priority = true, CustomFields = true, DueDate = true }; req.Entities = new[] { new bfsapi.UpdateTask() { BrickId = new Guid("20b36672-0109-4679-ad7e-aed65494977d"), Heading = "UpdatedeHeading", Priority = "Medium", CustomFields = new CustomField[] { new CustomField { FieldName = "TestFieldUpdate", Value = "TestValueUpdate" }, }, DueDate = DateTime.Today.AddDays(10) } }; var resp = target.UpdateTasks(req); }