CreateNotes

Inputs (Array[]) inherits from EntityBase

NameTypeDescriptionMandatoryAvailable from version
UserGuidThe user that the note is associated to.YesNew method in 2.24
HeadingstringThe heading of the note.

TextstringThe text of the note.

EventDateDateTimeIf a date is associated with the note, this value is used.

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

Response rows

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






Code examples

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

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

            req.identify = GetApiIdentifier();

            req.Entities = new[]
            {
                new bfsapi.CreateNote()
                {
                    Heading = "TestHeading",
                    IsHTML = true,
                    Text = "Texting",
                    User = Guid.NewGuid(),
                    EventDate = DateTime.Today,
                    CustomFields = new CustomField[]
                    {
                        new CustomField
                        {
                            FieldName = "TestField",
                            Value = "TestValue"
                        },
                    },


                }
            };

            var resp = target.CreateNotes(req);
        }


Blog Posts

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