Skip to content

Instantly share code, notes, and snippets.

@stephenreid
Created May 29, 2012 16:56
Show Gist options
  • Save stephenreid/2829514 to your computer and use it in GitHub Desktop.
Save stephenreid/2829514 to your computer and use it in GitHub Desktop.
Assign to a User with Custom Field Value
<?
//This is the pseudo code to assign prospects based on a custom field's value
$connection = new PardotConnector();
$connection->authenticate();
$prospects = $connection->getRecentlyUpdatedProspects();
foreach($prospects as $prospect){
if($prospect->owner_email!=false){
$prospect->setAssignedUser($prospect->owner_email);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment