How to Import Template Export Strings in Apex
List<SDOC__SDTemplate__c> templates = new List<SDOC__SDTemplate__c>();
String importString = 'Your template import string goes here';
SDOC__SDTemplate__c sdt = new SDOC__SDTemplate__c();
SDOC.SDTemplateEditor.importTemplateData(sdt, 'SDOC__SDTemplate__c', importString);
templates.add(sdt);
insert templates;
update templates;Last updated
Was this helpful?

