Community
Showing results for 
Search instead for 
Do you mean 
Reply

How to remove a note from the noteslist

Astute Commentator
Posts: 168
Country: United States

How to remove a note from the noteslist

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.

 

T

Employee
Posts: 1,163
Country: USA

Re: How to remove a note from the noteslist

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.

 


Matthew Wood
Act! SDK Support
Community Moderator
Astute Commentator
Posts: 168
Country: United States

Re: How to remove a note from the noteslist

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.

 

T