Skip to Content

What is the BO for EmailTemplate?

Hello experts,

Actually i am searching to get the category that is in the Email Template from the campaign.

I believe have got the emailTemplateUUID:

But when i try call the BO, it not exist like email Template. would you tell me what is the BO or what would i can to do?

thank you.

gimct.png (50.9 kB)
uyvf1.png (106.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 24 at 08:59 PM


    In order to retrieve the Email Template Category from Campaign BO there is no direct association exists. Hence you need to first retrieve the Email template UUID from Campaign.ExecutionStep.EmailTemplateUUID. Donot stop here and also store other parameter like FromEmailURI/content, ReplyToEmailURI/content, ReplyToEmailName, FromEmailName which will be used later.

    Then you need to use standard BO MarketingEmailTemplate of AP.CRM.Global namespace to fetch the related category of the email template. This should be done using QueryByElements BUT you will soon realise that EmailTemplateUUID is not exposed as a query parameter. So you need to filter all the emails templates based on filter value like FromEmailURI, FromEmailName, ReplyToEmailURI (retrieved from campaign) and then compare the value of email templates with the one from Campaign.ExecutionStep.EmailTemplateUUID.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.