Click or drag to resize

NotesClientAddNote Method

Add a new Note linked to the specified entity.

Syntax
C#
public ResultOfguid AddNote(
	ManagementGroupRequestOfNote request
)

Parameters

request
Type: NotesServiceManagementGroupRequestOfNote

Return Value

Type: ResultOfguid
Examples
C#
using (var svc = new NotesService.NotesClient())
{
  var request = new NotesService.ManagementGroupRequestOfNote();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var note = new NotesService.Note();
  note.RSN = System.Guid.NewGuid();// Required
  note.Entity_RSN = new Guid("22b4c3b2-9ab6-4c3f-9cdd-08a7412faccf");; //Required - RSN of entity the note is linked to
  note.NotificationType = "INFORMATION"; //Required - Valid values are: 'INFORMATION', 'QUESTION', 'URGENT' or 'CRITICAL'
  note.CreatedBy_RSN = new Guid("289985d9-9d11-457f-ae2f-309ccda7be90");; //Required - RSN of logged in user
  note.CreatedBy = "Demo user";// Optional
  note.CreatedOn = DateTime.Now;// Optional
  note.Notes = "Membership end date changed";// Required

  request.Value = note;// Required

  NotesService.ResultOfguid result = svc.AddNote(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also