Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Inputs (Array[]) inherits from EntityBase

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

Assignee from version 2.27
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

  • No labels