• Wobbet
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 5
    Replies

I'm looking at the integration pages and seeing that the "latest and greatest" version of the .NET API is dated May of 2009 and is versioned at 0.1.

 

Is this really the latest and greatest? Is there another API implementation that I should be looking at?

 

Many thanks!

 

rjsjr 

  • March 25, 2010
  • Like
  • 0

I'm using the PHP developer toolkit 13.0 Enterprise Edition trying to update a Contact to set the Email Opt Out. My code is as follows:

 

$objToUpdate = array();

foreach ($response->records as $record) 

{

$updObject = new stdclass();

        $updObject->HasOptedOutOfEmail = "0";

        $updObject->Id = strval($record->Id);

$objToUpdate[$updObject->Id] = $updObject;

}

foreach($objToUpdate as $toupdate)

{

print_r($toupdate->Id."<BR>");

print_r($toupdate->HasOptedOutOfEmail."<BR>");

}

$response = $mySforceConnection->update($objToUpdate, "Contact");

 

I get the "INVALID_TYPE: Must send a concrete entity type" exception on this. I took out the setting of the "HasOptedOutOfEmail" from the code so that the only thing that would be in the object would be the Id and that still failed.

 

In my WSDL I have tried both of the following SOAP Endpoints and both produce the same result.

            <soap:address location="https://www.salesforce.com/services/Soap/c/15.0"/>

            <soap:address location="https://na3-api.salesforce.com/services/Soap/c/15.0/"/>

 

 

I feel like I'm missing something obvious. What is it? 

 

Many thanks!

 

rjsjr 

  • February 27, 2009
  • Like
  • 0

I'm looking at the integration pages and seeing that the "latest and greatest" version of the .NET API is dated May of 2009 and is versioned at 0.1.

 

Is this really the latest and greatest? Is there another API implementation that I should be looking at?

 

Many thanks!

 

rjsjr 

  • March 25, 2010
  • Like
  • 0

I'm using the PHP developer toolkit 13.0 Enterprise Edition trying to update a Contact to set the Email Opt Out. My code is as follows:

 

$objToUpdate = array();

foreach ($response->records as $record) 

{

$updObject = new stdclass();

        $updObject->HasOptedOutOfEmail = "0";

        $updObject->Id = strval($record->Id);

$objToUpdate[$updObject->Id] = $updObject;

}

foreach($objToUpdate as $toupdate)

{

print_r($toupdate->Id."<BR>");

print_r($toupdate->HasOptedOutOfEmail."<BR>");

}

$response = $mySforceConnection->update($objToUpdate, "Contact");

 

I get the "INVALID_TYPE: Must send a concrete entity type" exception on this. I took out the setting of the "HasOptedOutOfEmail" from the code so that the only thing that would be in the object would be the Id and that still failed.

 

In my WSDL I have tried both of the following SOAP Endpoints and both produce the same result.

            <soap:address location="https://www.salesforce.com/services/Soap/c/15.0"/>

            <soap:address location="https://na3-api.salesforce.com/services/Soap/c/15.0/"/>

 

 

I feel like I'm missing something obvious. What is it? 

 

Many thanks!

 

rjsjr 

  • February 27, 2009
  • Like
  • 0