function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sekharasekhara 

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.

prakash_sfdcprakash_sfdc

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
}
}