Created
May 29, 2012 16:56
-
-
Save stephenreid/2829514 to your computer and use it in GitHub Desktop.
Assign to a User with Custom Field Value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
//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