You need to sign in to do that
Don't have an account?

Customer Portal custom email alert.
Hi,
I am trying to send 2 mails when client is enabled as customer portal.
1. Standard mail contains URL, Username, Password.
2. Contains company info.
But for 2nd mail I am trying to workflow email alert but it is not working. Can any ine can help on this issue.
Thanks In Advance.
Hi,
On which object you are trying to create workflow ? I don't think you can create a workflow for user
Try writing a afterupdate trigger on User object and trigger the email alert
trigger sendCompanyDetails on User(after update)
{
for(User u:Trigger.new)
{
if(u.profileid='xxx' && Customerportalactive==true)
//send email code
}
Use this link for the code to send email
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_email_outbound.htm
}
}