cancel
Showing results for 
Search instead for 
Did you mean: 

Sending content from one repo to another?

msvoren
Champ in-the-making
Champ in-the-making
Hello,
Is there API (Javascript would be great) that could send content from one alfresco installation to another alfresco?
4 REPLIES 4

openpj
Elite Collaborator
Elite Collaborator
I think you can use Alfresco WebScript RESTful API to implement a similar feature.
You can see the wiki for more details:

http://wiki.alfresco.com/wiki/3.0_Web_Scripts_Framework

Hope this helps.

msvoren
Champ in-the-making
Champ in-the-making
It would be a good thing if mailing with attachments is possible.
That sounds very clean..

On one side, js scipt sends email , directly to another alfresco, to space defined with email alias..

Is there any signs of alfresco implementation on email attachments?

mrogers
Star Contributor
Star Contributor

msvoren
Champ in-the-making
Champ in-the-making
Well, i would like to enable alfresco to send attachments..


  // create mail action
  var mail = actions.create("mail");
  mail.parameters.to = "davidc@alfresco.com";
  mail.parameters.subject = "Hello from JavaScript";
  mail.parameters.from = "davidc@alfresco.com";
  mail.parameters.template = root.childByNamePath("Company Home/Data Dictionary/Email Templates/notify_user_email.ftl");
  mail.parameters.text = "some text, in case template is not found";
  // execute action against a document   
  mail.execute(doc);

I guess this document nodeRef in "execute(doc)" is only used in executing email ftl template against that node.
It would be nice to have an option so send this file as an attach too.