Guest User

Untitled

a guest
Dec 15th, 2017
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. /* Set username and password here */
  2. $client->username = 'username';
  3. $client->password = 'password';
  4.  
  5. $qd = new ExactTarget_QueryDefinition();
  6. $qd->ObjectID = 'Query External KEY';
  7. $qd->TargetUpdateType = "Overwrite";
  8. $qd->TargetType = "DE";
  9. $qd->QueryText = "SELECT * FROM ent.Active";
  10.  
  11. $ibo = new ExactTarget_InteractionBaseObject();
  12. $ibo->CustomerKey = 'Target DE External Key';
  13. $ibo->Name = 'Target DE Name';
  14. $qd->DataExtensionTarget = $ibo;
  15.  
  16.  
  17. $object = new SoapVar($qd, SOAP_ENC_OBJECT, 'QueryDefinition', "http://exacttarget.com/wsdl/partnerAPI");
  18. $request = new ExactTarget_UpdateRequest();
  19. $request->Options = NULL;
  20. $request->Objects = array($object);
  21. $results = $client->Update($request);
Add Comment
Please, Sign In to add comment