You need to sign in to do that
Don't have an account?
kamal3883
Email Signature in Apex
Hi,
Can anyone tell me is it possible to extract email signature(Salesforce Standard present in My Email Settings) in Apex. We just want to extract through apex so that we can append it in some pages.
Thanks
Can anyone tell me is it possible to extract email signature(Salesforce Standard present in My Email Settings) in Apex. We just want to extract through apex so that we can append it in some pages.
Thanks
https://success.salesforce.com/ideaView?id=08730000000aZvWAAU which is under point threshold.
There is a workaround for the same that is to copy the value of the field to another custom field and them make use of it as shown by one of the users on the Idea:
trigger CopySignature on User (before update, before insert) {
for (User user : Trigger.new)
user.Signature_copy__c = user.Signature ;
}
You can access the user's email signature via the code below. No need for a trigger or custom field. However, it may remove line breaks and can cause formatting issues. I used this code to insert into an email message's htmlbody and was able to replace all ASCII line breaks with HTML line breaks. I imagine you can do a similar find/replace for visualforce pages or whatever destination formatting you might need.