Adding comments to folder from a script

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2015 10:45 PM
Hi Everyone,
I'm trying to automate adding a comment when a folder is created. This way the folder can have a link to the CIFS windows share.
I'm using folder rules and a custom script.
In the script I've managed to find my way to the 'discussion' object on the node but can't seem to find any actual comments on this.
<blockquote>comments = document.childAssocs["fm:discussion"][0];</blockquote>
Anyone got any ideas how to get the comments nodes from the document node?
Or any other way that I can add a link to a folder when it's created so that users can easily jump from web interface to windows explorer?
I've manually created the following and it works great, but just wanting to automate it.
e.g. A folder in alfresco
<blockquote>http://alfresco-dev:8080/share/page/site/test-site/documentlibrary#filter=path|%2FClients|&page=1</blockquote>
has a comment with a url:
<blockquote>\\alfresco-dev\alfresco\sites\test-site\documentlibrary\Clients\</blockquote>
Any help would be much appreciated.
P.S. it's really hard to google for answers to this as Comment, Discussion and Forum are all <em>really</em> common words.
I'm trying to automate adding a comment when a folder is created. This way the folder can have a link to the CIFS windows share.
I'm using folder rules and a custom script.
In the script I've managed to find my way to the 'discussion' object on the node but can't seem to find any actual comments on this.
<blockquote>comments = document.childAssocs["fm:discussion"][0];</blockquote>
Anyone got any ideas how to get the comments nodes from the document node?
Or any other way that I can add a link to a folder when it's created so that users can easily jump from web interface to windows explorer?
I've manually created the following and it works great, but just wanting to automate it.
e.g. A folder in alfresco
<blockquote>http://alfresco-dev:8080/share/page/site/test-site/documentlibrary#filter=path|%2FClients|&page=1</blockquote>
has a comment with a url:
<blockquote>\\alfresco-dev\alfresco\sites\test-site\documentlibrary\Clients\</blockquote>
Any help would be much appreciated.
P.S. it's really hard to google for answers to this as Comment, Discussion and Forum are all <em>really</em> common words.
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2015 09:10 AM
Hi,
Do you know now how to do this?
Do you know now how to do this?
