1

I created Test email in classic content using below code. but i need to create same email in content builder through soap api.could you please send me Sopa api code for creating email in content builder.

 <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Header>
            <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                <UsernameToken>
                    <Username>user123@sfdc.com</Username>
                    <Password>xxxxx</Password>
                </UsernameToken>
            </Security>
        </Header>
        <Body>
            <CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
                <Options/>
                <Objects xsi:type="Email">
                    <ObjectID xsi:nil="true"/>
                    <Name>Text Only in API</Name>
                    <Description>Description</Description>
                    <TextBody>Good Day,

    Below are the stats from Activity.

    -   Number of new Emails
    -   Number of Old email 
    -   Number of After 10 days emailemail 

    Thank you


    </TextBody>
                <Subject>AppData Web Activity Reporting </Subject>
                    <EmailType>Text Only</EmailType>
                </Objects>
            </CreateRequest>
        </Body>
    </Envelope>
3

Unfortunately, it is not possible to create assets in content builder with the SOAP API. You must use the REST API to do this. See Content Builder API to get started

From the docs:

Marketing developers, service providers, and third-party developers can create and manipulate marketing content using the Content Builder REST API

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.