NotesClientEditNote Method |
Edit a Note from the supplied Note RSN.
The Note RSN can be fetched from the Web Service Method: Select Notes
public Result EditNote( ManagementGroupRequestOfNote request )
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 = new Guid("31387224-7578-4aaa-8d2a-16169bf1f2ec");; // Required Note RSN to be edited note.Entity_RSN = new Guid("f05ab184-092f-46aa-96d9-411969607460");; //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("3d0aff94-d194-4859-972d-e76ceb0b66bf");; //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.Result result = svc.EditNote(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }