I want to retrieve the email title through Guid of the template. Is there any way I can get the titles?
here is my code. I am also filtering the templates.
public static void TemplateLogic(IOrganizationService service, string selected_option)
{
var queryBuildInTemplates = new QueryExpression
{
EntityName = "template",
ColumnSet = new ColumnSet("templateid", "templatetypecode"),
Criteria = new FilterExpression()
};
queryBuildInTemplates.Criteria.AddCondition("templatetypecode",
ConditionOperator.Equal, "contact");
EntityCollection templateEntityCollection = service.RetrieveMultiple(queryBuildInTemplates);
}