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
Leon2Leon2 

Transferring content files via APEX

Can triggers be used to transfer Content files across workspaces?

prats23prats23

Possibly, YES!

 

Try to use Content DataModel i.e. trigger on object ContentWorkspace.. I guess it should work!

 

See here..

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

 

P.S. I have never done it myself, but i think it is possible!!

prats23prats23

Hey,

 

Sorry.. i checkd again.. triggers on Content is NOT allowed!! Sorry that wont work.. see this idea..

 

http://success.salesforce.com/ideaView?c=09a30000000D9xt&category=Web+Services+API&id=08730000000BrYF&returnUrl=%2Fapex%2FideaList%3Fc%3D09a30000000D9xt