How can I get the metadata for email template, email signature letterhead, logo endpoints?

I'm trying to find out like the content in the email or email signature or the email template etc...

I haven't found online, any guidance on how to go forth?

1 Answer 1


EmailTemplate and BrandTemplate expose this information. You should be able to query them in Apex.

Here's some basic code that should include practically everything you want:

Map<Id, BrandTemplate> headers = new Map<Id, BrandTemplate>([
    SELECT Value
    FROM BrandTemplate
EmailTemplate[] templates = [
    select body, folder.name,
    htmlvalue, markup, name,
    relatedentitytype, subject,
    templatestyle, templatetype,
    from emailtemplate
  • Any idea about email signature?
    – Nick
    Commented Aug 31, 2017 at 14:21
  • @NickKahn The user's email signature? That's on the User object.
    – sfdcfox
    Commented Aug 31, 2017 at 14:29
  • thanks and the last question where do i find letterhead
    – Nick
    Commented Aug 31, 2017 at 14:38
  • @NickKahn Letterhead is the BrandTemplate. I know it's not "obvious", but that's what it is: a template for your Brand.
    – sfdcfox
    Commented Aug 31, 2017 at 14:42
  • never worked on this before, is there a way to access metadata for the BrandTemplate ? like I need to access logo and color for the letterhead etc..
    – Nick
    Commented Aug 31, 2017 at 14:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .