CreateTasks

Inputs (Array[]) inherits from EntityBase

NameTypeDescriptionMandatoryAvailable from versionComment
UserGuidThe user that the task is associated to.YesNew method in 2.24
AssigneeGuidIf a certain admin or partner user should execute the task, this value is used.

Before version 2.27 Assignee was called Administrator. 
HeadingstringThe heading of the task.


TextstringThe text of the task.


DueDateDateTimeIf the task has a due date this value is used.


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


PrioritystringWhich priority the task should have. Allowed values are: "High", "Medium", "Low". Default are set to: "Medium".


StatusstringWhich status the task should have. Allowed values are: "Created", "InProgress", "Done", "Closed". Default are set to "Created".


Response rows

NameTypeDescriptionAvailable from version
EntitiesArrayAll tasks in the request is returned along with each tasks BrickId and array of Errors per task






Code examples

C# - Create Tasks
public static void CreateActivityLogTask()
        {
            var binding = new BasicHttpBinding();
            binding.MaxReceivedMessageSize = Int32.MaxValue;

            var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://localhost:20010/bfsapi.asmx"));
            var req = new CreateTasksRequest();
            req.Credentials = new bfsapi.Credentials
            {
                UserName = GetApiUserName(),
                Password = GetApiPassword()
            };

            req.identify = GetApiIdentifier();

            req.Entities = new[]
            {
                new bfsapi.CreateTask
                {
                    Status = "Done",
                    Heading = "TestHeading",
                    IsHTML = true,
                    Text = "Texting",
                    User = Guid.NewGuid(),
                    Administrator = Guid.NewGuid(),
                    Priority = "Medium",
                    CustomFields = new CustomField[]
                    {
                        new CustomField
                        {
                            FieldName = "TestField",
                            Value = "TestValue"
                        }, 
                    },
                    DueDate = DateTime.Today.AddDays(10)
                    
                }
            };

            var resp = target.CreateTasks(req);
        }


Blog Posts

Related pages

Terms of License
Change Policy
© 2009 - 2024 Huddlestock Technologies AB All rights reserved