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
Next »
Name | Type | Description | Mandatory | Available from version |
---|
BrickId | Guid |
| Yes | New method from 2.24 |
Receiver | Guid | The receiver of the message. |
|
|
Subject | string | The subject of the message. |
|
|
Body | string | The body of the message. |
|
|
EventDate | DateTime | A date associated with the message. |
|
|
IsHTML | bool | If the body of the message contains html this should be set to true. |
|
|
IsRead | bool | If the message is read by the customer. |
|
|
IsPublic | bool | If the message is public. |
|
|
IsPromoted | bool | If the message is promoted i.e. shown on the account overview when the user logs in. |
|
|
Priority | string | Which priority the message should have. Allowed values are: "High", "Medium", "Low". |
|
|
Status | string | Which status the message should have. Allowed values are: "Created", "InProgress", "Done", "Closed". |
|
|
Outputs
Name | Type | Description | Available from version |
---|
Entities | Array | All message in the request is returned along with each message BrickId and array of Errors per message |
|
Code examples
public static void UpdateActivityLogMessage()
{
var binding = new BasicHttpBinding();
binding.MaxReceivedMessageSize = Int32.MaxValue;
var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://localhost:20010/bfsapi.asmx"));
var req = new UpdateMessageRequest();
req.Credentials = new bfsapi.Credentials
{
UserName = GetApiUserName(),
Password = GetApiPassword()
};
req.identify = GetApiIdentifier();
req.Fields=new UpdateMessageFields
{
Subject = true,
Priority = true,
CustomFields = true,
EventDate = true
};
req.Entities = new[]
{
new bfsapi.UpdateMessage()
{
BrickId = new Guid("20b36672-0109-4679-ad7e-aed65494977d"),
Subject = "UpdatedeSubject",
Priority = "Medium",
CustomFields = new CustomField[]
{
new CustomField
{
FieldName = "TestFieldUpdate",
Value = "TestValueUpdate"
},
},
EventDate = DateTime.Today.AddDays(10)
}
};
var resp = target.UpdateMessages(req);
}