• Meredith Meyers
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Does anyone have experience writing Update() code on the Campaign Member object to update the Status field using SOAP API in PHP? We’re stumped how to do this. Seems there are some limitations with using Upsert() function on the Campaign Member and wonder if there is a way to at least use an update() call. Ours may just be a syntax issue.

This is the code we’re trying to use:
if ($campaign_member_id) {
$mainResp = $mySFConnection->update($mainCM, 'CampaignMember');
//$mainResp = $mySFConnection->upsert('Id', $mainCM, 'CampaignMember');
echo "*** Campaign Member ID exists *** ";
var_dump($mainCM);
} else {
$mainResp = $mySFConnection->create($mainCM, 'CampaignMember');
echo "*** No Campaign Member ID *** ";
var_dump($mainCM);
}
Does anyone have experience writing Update() code on the Campaign Member object to update the Status field using SOAP API in PHP? We’re stumped how to do this. Seems there are some limitations with using Upsert() function on the Campaign Member and wonder if there is a way to at least use an update() call. Ours may just be a syntax issue.

This is the code we’re trying to use:
if ($campaign_member_id) {
$mainResp = $mySFConnection->update($mainCM, 'CampaignMember');
//$mainResp = $mySFConnection->upsert('Id', $mainCM, 'CampaignMember');
echo "*** Campaign Member ID exists *** ";
var_dump($mainCM);
} else {
$mainResp = $mySFConnection->create($mainCM, 'CampaignMember');
echo "*** No Campaign Member ID *** ";
var_dump($mainCM);
}