Community
Showing results for 
Search instead for 
Do you mean 
Reply

Copy history as a note

Copper Contributor
Posts: 5
Country: Canada

Copy history as a note

 

Hello All

 

I just finished a ACT6 conversion and found all the notes sitting in history (along with all the attachments)

 

Whats the best way to move the histories back to notes with the attachment

 

I got the basic loop

 

        Dim c As Act.Framework.Contacts.ContactManager = newact.Contacts
        Dim cl As Act.Framework.Contacts.ContactList = c.GetContacts(Nothing)
        For Each contact As Contacts.Contact In cl
            Dim h As Act.Framework.Histories.HistoryManager = newact.Histories
            Dim hl As Histories.HistoryList
            hl = h.GetHistories(Nothing, contact)
For Each history As Act.Framework.Histories.History In hl
''TODO HERE Next Next

 

Ive got two questions

 

1) is there anyway to re-use the same attachment durring the copy so i dont have to COPY the file over

2) What is the easiest way to create a copy of the history under notes (create a note programmatically)

 

thanks