04-06-2012 11:24 AM
Does anyone have a small piece of code on how to remove a note programatically from the notes for a contact?
I'm using the ACT! Framework to do it. I've looked at all the object on the notes and I have not found anything like "Remove" or "Delete" so that notes can be removed.
Thanx in advance.
04-06-2012 12:29 PM
Sorry, no code, but take a look at the NoteManager class, there are methods for removing notes from every top level entity.
public void DeleteNoteForContact(Contact contact, Note note)
I only checked the 2012 code reference but I don't think these are new.
04-06-2012 12:47 PM
Actually, I had to go one step up and use ACTFM.Notes.DeleteNote(Note) method.
ACT! is kind of funky that it does not have those methods as part of the NotesList (like all other SDKs that I've worked with) and they have created a separate and independent deletion call from the general Notes object.