S
Santosh Patel
Guest
Then this is what you need to do. Go to Administrative setup > Preferences and turn off welcome email option. This will stop sending the default email template (which is a system template). Add a checkbox field on the USER object, say isClient with default value as unchecked. When creating a user through API set this field to true. Create 2 'Send Email' triggers with 'After Create' timing on the USER object, selecting 1 email template each. On the "client email" trigger, in the formula box at the bottom of the page use the following formula, return {!isClient}; And a not of that condition "return !{!isClient};" in the regular user template trigger. Both triggers will fire when a user is created but based on the isClient field's value, the formula will decide which email to fire. You can extend this logic to have multiple different set of users and use a picklist or similar multi-value field to decide on which mail to fire.
Continue reading...
Continue reading...