Skip to content

Conversation

@observstream
Copy link

As we were using the SOAP client to update Accounts, none of the updates were going through because the system wasn't sending the Id along (we are sending an array on objects). The issue seems to stem from the code that validates the types of the attributes that can be updated and sent back. Since Id is not an editable field, it is not returned with all the other custom fields in Salesforce. I had to add one line of code to fix this.

$elements['Id'] = 'string';

This was added to the SoapClient class in the getSoapElementType function.

J Humes added 3 commits December 31, 2014 11:45
Fix for an update not keeping Id in the object that gets passed to Salesforce. This results in an error.
@ikrasnykh
Copy link
Contributor

The type of Id is "ID", also specifying Nillable fields will still be broken. See: https://github.com/phpforce/soap-client/pull/19/files for an alternate fix w/ more elegant solution

@ddeboer
Copy link
Member

ddeboer commented Apr 5, 2015

See #19 for a better fix.

@ddeboer ddeboer closed this Apr 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants