<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic dynamic email recipient assignment in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-email-recipient-assignment/m-p/205536#M158666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hallo to everybody.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to send an email to a group/s of users whenever a document enters into a folder. I have created a rule in Alfresco to do so by sending emails to fixed, predefined groups. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the problem arises when the groups are not known at design time. In my case, the different groups are created dinamically at run time. For this reason, I cannot create a rule directly with the Alfresco client to send an email to these groups, because they do not even exist when creating the rule. For this reason, I need to assign the group dynamically. Then the question is: Is there a way to change a predefined email sending rule to change the recipient of the emails? Or, alternatively, how can I set up an email sending rule at run time with a javascript? I suppose that there is a javascript API to access these rules, but I am not able to find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2009 08:30:14 GMT</pubDate>
    <dc:creator>darioruizlopez</dc:creator>
    <dc:date>2009-05-04T08:30:14Z</dc:date>
    <item>
      <title>dynamic email recipient assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-email-recipient-assignment/m-p/205536#M158666</link>
      <description>Hallo to everybody.I need to send an email to a group/s of users whenever a document enters into a folder. I have created a rule in Alfresco to do so by sending emails to fixed, predefined groups. But the problem arises when the groups are not known at design time. In my case, the different groups a</description>
      <pubDate>Mon, 04 May 2009 08:30:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-email-recipient-assignment/m-p/205536#M158666</guid>
      <dc:creator>darioruizlopez</dc:creator>
      <dc:date>2009-05-04T08:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic email recipient assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-email-recipient-assignment/m-p/205537#M158667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can create a web script which takes the group name and document as arguments (reusing the javascript from the content rule). You can then just call this webscript once look up the group name and document.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 16:42:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-email-recipient-assignment/m-p/205537#M158667</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2009-05-11T16:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic email recipient assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-email-recipient-assignment/m-p/205538#M158668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not really have a javascript for sending the emails. The emails are sent via a content rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally I have just managed to access the email sending rule by writing a script which navigates through the node tree to the rule node and its parameter nodes. Modifying the parameter node causes the rule to be updated. The problem is that, because this way of accessing the rule is not documented in Alfresco I have no warranty that I will not become inoperative with time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 10:59:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-email-recipient-assignment/m-p/205538#M158668</guid>
      <dc:creator>darioruizlopez</dc:creator>
      <dc:date>2009-05-13T10:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic email recipient assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-email-recipient-assignment/m-p/205539#M158669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Because I believe that this topic might be useful for other users, here is the solution that I have finally used for this topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an input constraint, I have named all of my notification rules to be reassigned to start with the prefix "Notify".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This done, I have travelled through the tree node of the workspace and its children looking for those nodes which correspond to system rules which refers to actions whose name starts with "Notify". This done, I have travelled through these nodes to locate the parameter named "to_many" and changed it to my new list of recipients. But, beware! the recipients are stored as a string for a single value and as a collection for several values. After this, all that is needed is to save the affected node, and we have the proper rule with the recipients reassigned&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 16:58:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-email-recipient-assignment/m-p/205539#M158669</guid>
      <dc:creator>darioruizlopez</dc:creator>
      <dc:date>2010-01-25T16:58:10Z</dc:date>
    </item>
  </channel>
</rss>

