How To Change the Owner ID

[php]

<?php

// Connect to the Infusionsoft API
require("isdk.php");
$app = new iSDK;
$app->cfgCon("sandbox");

// Notice the names in red match up to the names sent in the http post snippet

$contactId = $_POST[‘contactId’];
$repId = $_POST[‘repId’];

// API call -> update contact record for $ContactId with the information in $rep

$rep = array(‘OwnerID’ => $repId);
$owner = $app->dsUpdate("Contact", $contactId, $rep);

&nbsp;

[/php]

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *