Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Can't create Contact and Opportunity in the same create() call using Partner Client #43

Open
aaronbauman opened this issue Jul 15, 2015 · 2 comments

Comments

@aaronbauman
Copy link

According to docs, https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_create.htm , I should be able to create a Contact and Opportunity in a single create() call.

Instead, when I try to do so using the toolkit i get the following error:

PHP Fatal error: SOAP-ERROR: Encoding: object has no "'type' property" salesforce

Breaking the exact same set of objects into two separate create()s works as expected.
I've tried both with and without "fields" array.

php 5.5.26, API version 34.0

What other info can i provide to help debug?

@aaronbauman
Copy link
Author

OK, the PHP client was choking because I was sending a non-sequentially-indexed array of sobjects.

Why does the client care about the indexes?
Is this a PHP-SOAP level thing, or something on the SF API end of things?

@AMRITPK
Copy link

AMRITPK commented Aug 20, 2018

hi ,
Facing the same problem and same error?
Any updates on this

error log object has no 'type' property in /var/www/html/asdfghj/soapclient/SforceBaseClient.php

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants