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 "true"
now in my Email Smart Service(Process Model) i want to send a mail to the users in the Group XYZ_Main having the custom field value as "true" , is this possible
can anyone please help me on this.
Thanks in advance
Discussion posts and replies are publicly visible
Hi vineethk0001Please try the below code
a!localVariables( local!trueUsers: a!forEach( a!groupMembers( group: togroup( 1/*Replace with the Group ID*/ ) ).data, if( user( fv!item, "customField1" /*Custom Field name which you are using*/ ) = true, fv!item, NULL ) ), if( fn!isnull( local!trueUsers ), NULL, toemailaddress( reject( fn!isnull, local!trueUsers ) ) ) )
Hi ekanshj, Thanks for the reply,
i created a expression rule with the above rule, and called it in Email to address,
getting an error Failed to send email (Invalid address, Recipient address rejected: User unknown in local recipient table)