public static void DeleteAttachmentFromNote(Guid noteId, IOrganizationService service)
{
Annotation note = new Annotation();
note.Id = noteId;
// Set the Documentbody and other fields to null to remove the attachment
note.DocumentBody = null;
note.FileName = null;
note.IsDocument = false;
service.Update(note);
}
Hiç yorum yok:
Yorum Gönder