UpdateNotes

UpdateNotes

Inputs (Array[] to update)

Name

Type

Description

Mandatory

Available from version

Name

Type

Description

Mandatory

Available from version

BrickId

Guid

The BrickId (unique id) of the note.

Yes

New method in 2.24

User

Guid

The user that the note is associated to. 

 

 

Heading

string

The heading of the note.

 

 

Text

string

The text of the note.

 

 

EventDate

DateTime

The date associated to the note.

 

 

IsHTML

bool

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

 

 

Outputs

Name

Type

Description

Available from version

Name

Type

Description

Available from version

Entities

Array

All notes in the request is returned along with each notes BrickId and array of Errors per note

 

Code examples

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