Community
Showing results for 
Search instead for 
Do you mean 
Reply

Contact History - attach File as Shortcut

Accepted Solution Solved
Copper Super Contributor
Posts: 88
Country: USA
Accepted Solution

Contact History - attach File as Shortcut

Hello all...

 

I'm trying to create a new Contact History record programmatically, adding a File reference as a Shortcut and not an Attachment. I want to store the File in a directory of my own choosing rather than the Attachments directory.

 

The references to "CreateShortcutAttachment()" seem to apply to Supplemental files, not a History record. Am I missing something? I've searched the SDK info and Samples info and did not find any references to attaching a Shortcut as a File in a History record.

 

Any Code would be helpful and appreciated!

 

Thank,

 

Kim


Accepted Solutions
Solution
Accepted by topic author kimkamp22
‎09-25-2015 03:20 AM
Copper Super Contributor
Posts: 88
Country: USA

Re: Contact History - attach File as Shortcut

Matthew:

 

Thanks for the reply.

 

Any Code snippet that you could share, to use the CreateShortcutAttachment() method?

 

Thanks!

 

Kim

View solution in original post


All Replies
Employee
Posts: 1,163
Country: USA

Re: Contact History - attach File as Shortcut

No matter where the original file is located, Act will create a shortcut file that will go in the supplemental file folder to facilitate synchronization. In the CreateShortcutAttachment() method, you can supply a path to any directory. Attachments and items on the document tab are actually history items of type Library Document.

Matthew Wood
Act! SDK Support
Community Moderator
Solution
Accepted by topic author kimkamp22
‎09-25-2015 03:20 AM
Copper Super Contributor
Posts: 88
Country: USA

Re: Contact History - attach File as Shortcut

Matthew:

 

Thanks for the reply.

 

Any Code snippet that you could share, to use the CreateShortcutAttachment() method?

 

Thanks!

 

Kim

Copper Super Contributor
Posts: 88
Country: USA

Re: Contact History - attach File as Shortcut

OK - I got it to work. It does seem to take a few seconds to attach. Next, I need to learn how to run a Thread...

Thanks for your help.