locked
Retriving Template used in Email RRS feed

  • Question

  • I want to display information regarding Email Template used in perticular Email .

    I want it in custom report. ex -In custom report I want to display Email info like Subject ,sender and the Title of Template used in that email.how to do that in SQL or In Fetch ?


    Wednesday, March 2, 2011 11:19 AM

Answers

  • I don't think that information is available unless you capture and store it yourself.

    When an email is sent via SendEmailFromTemplate, as far as I know, there is no enduring link between the Email and the Template from which it originated.  I certainly can't see any such attribute on the Email entity.

    You would have to handle the applicable messages (SendEmailFromTemplate and SendTemplate, from what I could see) in a plugin and store some kind of mapping between the Template and the resultant Email entity instances.


    --pogo (pat)
    Wednesday, March 2, 2011 11:02 PM