0

I'm facing a issue while trying to create a TriggeredSendDefinition via FuelSDK for Java. I managed to create an ETSoapConnection object, to define the TriggeredSendDefinition and to create a CreateRequest, but when the instruction that creates the object execute, I always receive a null result and overallStatus=OK.

Below my code snippet:

TriggeredSendDefinition triggeredSend = new TriggeredSendDefinition();
Email internalEmail = (Email)email.toInternal();
triggeredSend.setEmail(internalEmail);
com.exacttarget.fuelsdk.internal.List internalList = (com.exacttarget.fuelsdk.internal.List)subscriptionListResponse.getObject().toInternal();
triggeredSend.setList(internalList);
triggeredSend.setEmailSubject("TEST");
triggeredSend.setName("Test1322");
triggeredSend.setTriggeredSendStatus(TriggeredSendStatusEnum.ACTIVE);

ETSoapConnection soap = new ETSoapConnection(client, "https://mczg58q5fbv8ptkf0p9ltj14vtr8.soap.marketingcloudapis.com/Service.asmx", client.getAccessToken());
Soap s = soap.getSoap();
CreateRequest request = new CreateRequest();
CreateOptions options = new CreateOptions();
ContainerID container = new ContainerID();
container.setAPIObject(triggeredSend);
options.setContainer(container);            
request.setOptions(options);
CreateResponse responsesoap = s.create(request);
System.out.println(responsesoap);

And this is the output:

com.exacttarget.fuelsdk.internal.CreateResponse@2e349cf2[results=<null>,requestID=b94d78d5-85f5-4ed7-a7f9-f98226037d18,overallStatus=OK]

What I am doing wrong?

Thank You.

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.