These examples assume that the custom attributes 'Team' and 'Rank' have been defined for the CA DataMinder users in your organization.
userattr WITH %user% WHERE Team IS "Equity Markets"
userattr WITH %user% WHERE Rank IS NOT "director"
userattr WITH %user% labeled %which_guy% WHERE Team labeled %proscribed_team% IS "Equity Markets"
The following email examples refer to emails sent internally within an organization. User Attribute lookup does not detect emails sent to or from external addresses.
userattr WITH any %recipient% labeled %which_guy% WHERE Team labeled %proscribed_team% IS "Equity Markets"
userattr WITH any %recipient% WHERE Team CONTAINS ANY {"Equity","Debt"}
userattr WITH any %recipient% WHERE Rank CONTAINS ALL {"non","officer"}
userattr WITH all %recipient% WHERE Rank EXCLUDES "director"
Note the NOT operator! The NOT operator ensures that if an executive director in the Equity Markets team is detected, the command returns a False value (and the trigger does not activate). The mandatory keyword ensures that, if no Rank is specified, the data lookup command fails and invokes the Data Lookup Failure Mode.
userattr WITH all %recipient% WHERE (Team IS NOT "Equity Markets") AND (mandatory Rank IS NOT {"executive","director"})
(msgattr WHERE msgimpactkb > 1000) AND (userattr WITH any %recipient% WHERE Team CONTAINS "Securities")
Copyright © 2014 CA.
All rights reserved.
|
|