Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Inputs (Array[]) inherits from EntityBase

NameTypeDescriptionMandatoryAvailable from version
UserGuidThe user that the note is associated to.Yes
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.

...

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






...

Code Block
languagec#
themeRDark
titleC# - Get all account types from a BFS instanceCreate Notes
linenumberstrue
collapsetrue
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
sortcreation
contenttitles
labelsgetaccounttypes