function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vijay kumar kvijay kumar k 

Create TriggeredsendDefination using SOAP

Hi Guys

I have a few questions to get clarity on TriggeredSendDefination and Salesforce to Marketing Cloud( Using Marketing Cloud Connector).
1. What are required fields while creating triggeredsend in salesforce and creating triggeredsenddefination in SOAP API.
2. With help of RefreshContent filed we can update triggeredsenddefination or not. why because I tried to update TSD using SOAP but I'm getting Exception in Updating if TSD is InActive also same error I'm getting.
3.What is busineesunit? Is this correct to use businnesunit id at ClientId in TSD?
3. Creating/updating TSD with giving BCCEmail value in SOAP possible or not?.
4. SendSourceDataExtension field in TSD is mandatory or not?
5. I tried to creating New TSD using SOAP but I'm frequently getting errors like 'Unable to access the specified email'. Why it was coming even I have all admin permissions.
6. Please confirm I have sample XML it was correct or not I should add anything please let me know.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header>
      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>My UserName</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">My Password</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
   <soapenv:Body>
      <CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
         <Options/>
         <Objects xsi:type="TriggeredSendDefinition">
            <PartnerKey xsi:nil="true"/>
            <ObjectID xsi:nil="true"/>
            
            <Name>TSD</Name>
            <BccEmail>xxxxx@xxx.xom</BccEmail>
            <AutoAddSubscribers>true</AutoAddSubscribers>
            <AutoUpdateSubscribers>true</AutoUpdateSubscribers>
            <SendClassification>
               <PartnerKey xsi:nil="true"/>
               <CustomerKey>Copied from setup,sendclassssification</CustomerKey>
               <ObjectID xsi:nil="true"/>
            </SendClassification>
            <Email>
               <PartnerKey xsi:nil="true"/>
               <ObjectID xsi:nil="true"/>
               <CustomerKey>Copied from Email Template</CustomerKey>
               <ID>105220</ID>
            </Email>
            <Client>
            <ID>Copied from Bussinesunit (MID)</ID>
            </Client>
            <SendSourceDataExtension>
               
            </SendSourceDataExtension>
         </Objects>
      </CreateRequest>
   </soapenv:Body>
</soapenv:Envelope>

With help of above sample code I tried to create TSD I'm getting Follwoing Error.
<Results>
            <StatusCode>Error</StatusCode>
            <StatusMessage>Unable to access the specified email</StatusMessage>
            <OrdinalID>0</OrdinalID>
            <ErrorCode>17016</ErrorCode>
            <NewID>0</NewID>
            <Object xsi:type="TriggeredSendDefinition">
               <PartnerKey xsi:nil="true"/>
               <ObjectID xsi:nil="true"/>
               <Name>TSD</Name>
               <SendClassification>
                  <PartnerKey xsi:nil="true"/>
                  <ObjectID xsi:nil="true"/>
                  <CustomerKey>hidden</CustomerKey>
               </SendClassification>
               <Email>
                  <PartnerKey xsi:nil="true"/>
                  <ID>hidden</ID>
                  <ObjectID xsi:nil="true"/>
                  <CustomerKey>hidden</CustomerKey>
               </Email>
               <AutoAddSubscribers>true</AutoAddSubscribers>
               <AutoUpdateSubscribers>true</AutoUpdateSubscribers>
               <BccEmail>hidden</BccEmail>
               <SendSourceDataExtension>
                  <PartnerKey xsi:nil="true"/>
                  <ObjectID xsi:nil="true"/>
               </SendSourceDataExtension>
            </Object>
         </Results>

Please help me  guys I'm new to Marketing Cloud .
Thanks in advance

Regards
Vijay