0

Right now, i trying to send some basic HTML contained email in Salesforce Marketing cloud via FuelSDK by next lines:

ETEmail email = new ETEmail();
email.setKey(UUID.randomUUID().toString());
email.setName("Test Name");
email.setSubject("My line");
email.setHtmlBody("<html>content</html>");

ETTriggeredEmail triggeredEmail = new ETTriggeredEmail();
triggeredEmail.setClient(session); // auth session given before
triggeredEmail.setKey(UUID.randomUUID().toString());
ETResponse<ETTriggeredEmail> send = triggeredEmail.send("grakovne@gmail.com");

But response of SOAP request is

<soap:Body>
    <CreateResponse xmlns="http://exacttarget.com/wsdl/partnerAPI">
      <Results xsi:type="TriggeredSendCreateResult">
        <StatusCode>Error</StatusCode>
        <StatusMessage>Invalid Customer Key</StatusMessage>
        <OrdinalID>0</OrdinalID>
        <ErrorCode>18002</ErrorCode>
        <NewID>0</NewID>
      </Results>
      <RequestID>87d76380-7398-42db-be87-3d3993ff8165</RequestID>
      <OverallStatus>Error</OverallStatus>
    </CreateResponse>
  </soap:Body>

As far as i know, customerKey is 36 symbols string, so it could be UUID.

So, could someone say, what is wrong?

Thanks a lot!

Your Answer

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

Browse other questions tagged or ask your own question.