Skip to end of metadata
Go to start of metadata
Name | Type | Description | Mandatory | Available from version |
---|
User | Guid | The user that the note is associated to. | Yes |
|
Heading | string | The heading of the note. |
|
|
Text | string | The text of the note. |
|
|
EventDate | DateTime | If a date is associated with the note, this value is used. |
|
|
IsHTML | bool | If the text of the note contains html this should be set to true. |
|
|
Response rows
Name | Type | Description | Available from version |
---|
Entities | Array | All notes in the request is returned along with each tasks BrickId and array of Errors per note |
|
|
|
|
|
Code examples
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);
}