function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
txmapptxmapp 

move attachments to file urgent

hi

i hope that yoo can help me

 

im new in force.com

 

my problem is that i want to copy or move all the attachments records to file or copy and convert

 

the main topic is that i want to make a search into the file actually i can't search into because it's on attachment 

 

i not sure if i need to move to file or documents but the requirement is move from attachments

 

i don't know if i need to create a trigger or class 

can some body give and example 

Srikant JoshiSrikant Joshi

Hi,

 

I am not entirely sure as to what you want with attachments.

 

But they(attachment) can be gotten through Attachment object, here, query to fetch the data(body,subject).

 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_attachment.htm 

 

Also you can write a trigger on Attchment object as well.

 

Regards,

joshisrik@gmail.com

b-Forceb-Force

Not sure what exactly you want to do with attachment, Are you looking to copy attachment data to some other object like document or some thing like copy to local disk.

 

for first option you can move all attachment to document bt apex code , in batch processing.

 

To copy to local disk check appexchange , there are several apps which do so.

 

 

Thanks,

bForce

 

 

txmapptxmapp

yes i want to move or copy all attachments to the object files not to documents