function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RYakerRYaker 

getting "Must send a concrete entity type" using create using php for the 4.0 API

results     (code,soapenv:Server.userException)
results     (message,common.exception.ApiException: Must send a concrete entity type.)


FIELDS     (type,Lead)
FIELDS     (FirstName,Gary)
FIELDS     (LastName,Raizes)
FIELDS     (Company,NIH)
FIELDS     (Phone,2025551210)
FIELDS     (Street,175 13th Street, NW)
FIELDS     (City,Washington)
FIELDS     (State,DC)
FIELDS     (Zip,20013)
FIELDS     (Country,USA)


Any ideas what I am missing in my sObject?
DevAngelDevAngel

Hi RYaker,

The SObject element must appear as follows:

<sObjects xsi:type="ns3:Account" xmlns:ns3="urn:sobject.enterprise.soap.sforce.com">   

the xsi:type is what makes this a concrete entity type.

RYakerRYaker
how do you do this using the PHP API?