How to retrieve Email templates from Salesforce Marketing cloud (SFMC) using SOAP or REST api? I am able to create simple template using FUELSDK but not able to retrieve it. I am using FuelSDK for java.
REST API is for Content Builder Email, SOAP API is for classic Email.
I assume you are referring to class Email? you need to send a RetrieveRequest for Template Object in SOAP API to get template objects
If you want specific templates, you can use SimpleFilter or ComplexFilter to filter the results
I am not referring to Email class. I want to write a code to retrieve Template. I have tried using RetrieveRequest class. Retrieve method takes ETApiObject as a parameter. There is no ETTemplate class available in java FuelSDK. I could retrieve all other things that are avaliable as ETApiObjects like Email , Folder etc. But not template.– NishiDec 1, 2017 at 5:40
@Nishi I do mean the templates in classic email view, not content builder. If Template object is not available for retrieve in fuelsdk, you can send soap request directly in java code, this is doc for Email object but you can do setobjecttype(“Template”) developer.salesforce.com/docs/…– Bo HuDec 1, 2017 at 22:24