cancel
Showing results for 
Search instead for 
Did you mean: 

Posting activities for copy-to and import actions

garryw
Champ in-the-making
Champ in-the-making
Hi,

I am trying to get Alfresco to post to the activity stream when a file is copied/moved etc and also when the import action is used as we have started using a share pluging that unzips an archive.  Does anyone have any advise on how to achieve this?

Thanks,

Garry
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

posting an activity in a Share plugin can be easily achieved by using the DoclibActions module in Share JS code to execute an action (genericAction(obj)) or to plain submit an activity post from custom code (postActivity(siteId, activityType, page, activityData)). You need to make sure that JSON and atomentry FTL templates for your custom activity post are available in the Repository (unless you post into the org.alfresco activity namespace) and the activity-list.get web script on Share is adapted to handle custom activity feed entries.

Regards
Axel