Replacement Code for ResolveMetaFileImages

Shannon Dunn asked on September 23, 2014 06:54

I am upgrading to Kentico 8 from 7. I have code that looks like this: MetaFile.ResolveMetaFileImages(emailMessage, template.TemplateID, EmailObjectType.EMAILTEMPLATE, MetaFileInfoProvider.OBJECT_CATEGORY_TEMPLATE);

I know now that I need to call the CMS.EmailEngine.EmailHelper.ResolveMetaFileImages method but what is the equivalent for EmailObjectType.EMAILTEMPLATE? Upgrade docs say its no longer available. But what do I put in there to get this method upgraded?

Recent Answers


Martin Danko answered on September 26, 2014 15:54

Hello Shannon,

The replacement in Kentico 8 is:

EmailTemplateInfo.OBJECT_TYPE

Best regards, Martin

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.