<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Send mails to selected users in Group</title><link>https://community.appian.com/discussions/f/process/19616/send-mails-to-selected-users-in-group</link><description>Hi All, 
 i have a group called XYZ_Main, which contains around 5 users, 
 i have configured the Custom field of 3 users from the above group to have a value &amp;quot;true&amp;quot; 
 now in my Email Smart Service(Process Model) i want to send a mail to the users in the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Send mails to selected users in Group</title><link>https://community.appian.com/thread/76650?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 06:28:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:adc3e685-ebb0-4a41-b76c-288deec0dbaf</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;Hi ekanshj, Thanks for the reply,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i created a expression rule with the above rule, and called it in Email to address,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;getting an error Failed to send email (Invalid address, Recipient address rejected: User unknown in local recipient table&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send mails to selected users in Group</title><link>https://community.appian.com/thread/76645?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 03:31:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9427f459-aa3c-45b3-9ada-d27e62d89862</guid><dc:creator>ekanshj</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/vineethk0001"&gt;vineethk0001&lt;/a&gt;&lt;br /&gt;Please try the below code&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!trueUsers: a!forEach(
    a!groupMembers(
      group: togroup(
        1/*Replace with the Group ID*/
      )
    ).data,
    if(
      user(
        fv!item,
        &amp;quot;customField1&amp;quot; /*Custom Field name which you are using*/
      ) = true,
      fv!item,
      NULL
    )
  ),
  if(
    fn!isnull(
      local!trueUsers
    ),
    NULL,
    toemailaddress(
      reject(
        fn!isnull,
        local!trueUsers
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>