I am new to Exact Target API and I am using the FuelSDK for PHP. I already have my data extension (created using TriggeredSendDataExtension template) with an email field that is linked to all subscribers' emails. My data extension's primary key is "My_ID" which are populated with unique strings.
This is my code:
$sendTrigger = new ET_TriggeredSend(); $sendTrigger->props = array('CustomerKey' => 'My_Trigger'); $sendTrigger->authStub = $this->myclient; $sendTrigger->subscribers = array(array("EmailAddress" => "email@example.com", "SubscriberKey" => "firstname.lastname@example.org", "My_ID" => "someUniqueString")); $response = $sendTrigger->send();
But I always get this error response:
[ErrorCode] => TriggeredSendSubscriberProcessingError [ErrorDescription] => Error Code: 19 - No value was provided for required data extension field My_ID.
Can anyone please enlighten me?