Find your content:

Search form

You are here

The Triggered Send Object must contain the Triggered Send ID or the Customer Key

 
Share

I am create TriggeredSend Email following this guide, but I still get this error message:

The Triggered Send Object must contain the Triggered Send ID or the Customer Key

This is my output message:

<soapenv:Body>
    <ns2:CreateRequest xmlns:ns2="http://exacttarget.com/wsdl/partnerAPI">
        <ns2:Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:CreateOptions">
            <ns2:RequestType>Synchronous</ns2:RequestType>
        </ns2:Options>
        <ns2:Objects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:TriggeredSend">
            <ns2:CustomerKey>01698556775</ns2:CustomerKey>
            <ns2:TriggeredSendDefinition xsi:type="ns2:TriggeredSendDefinition"></ns2:TriggeredSendDefinition>
            <ns2:Subscribers xsi:type="ns2:Subscriber">
                <ns2:EmailAddress>anpm19892013@gmail.com</ns2:EmailAddress>
                <ns2:Attributes>
                    <ns2:Name>LINK_HREF_1</ns2:Name>
                    <ns2:Value>&lt;a href='httpgetwrap|http://www.exacttarget.com' alias='ET'&gt;Dynamic ET Link&lt;/a&gt;</ns2:Value>
                </ns2:Attributes>
                <ns2:SubscriberKey>12345</ns2:SubscriberKey>
            </ns2:Subscribers>
        </ns2:Objects>
    </ns2:CreateRequest>
</soapenv:Body>

How can i solve this issue?


Attribution to: anpm

Possible Suggestion/Solution #1

It looks like the TriggeredSendDefinition object isn't set up quite right. The CustomerKey should be nested inside the TriggeredSendDefinition.

<soapenv:Body>
    <ns2:CreateRequest xmlns:ns2="http://exacttarget.com/wsdl/partnerAPI">
        <ns2:Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:CreateOptions">
            <ns2:RequestType>Synchronous</ns2:RequestType>
        </ns2:Options>
        <ns2:Objects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:TriggeredSend">
            <ns2:CustomerKey>01698556775</ns2:CustomerKey>
            <ns2:TriggeredSendDefinition xsi:type="ns2:TriggeredSendDefinition">
               <ns2:PartnerKey xsi:nil="true"/>
               <ns2:ObjectID xsi:nil="true"/>
               <ns2:CustomerKey>01698556775</ns2:CustomerKey>
            </ns2:TriggeredSendDefinition>
            <ns2:Subscribers xsi:type="ns2:Subscriber">
                <ns2:EmailAddress>anpm19892013@gmail.com</ns2:EmailAddress>
                <ns2:Attributes>
                    <ns2:Name>LINK_HREF_1</ns2:Name>
                    <ns2:Value>&lt;a href='httpgetwrap|http://www.exacttarget.com' alias='ET'&gt;Dynamic ET Link&lt;/a&gt;</ns2:Value>
                </ns2:Attributes>
                <ns2:SubscriberKey>12345</ns2:SubscriberKey>
            </ns2:Subscribers>
        </ns2:Objects>
    </ns2:CreateRequest>
</soapenv:Body>

Here is some sample code.


Attribution to: Kelly J Andrews
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/34651

My Block Status

My Block Content