restforcephp
restforcephp copied to clipboard
Can multiple records of the same object be created in one request?
Something like this?
<?php
/** @var \EventFarm\Restforce\RestforceInterface $restforce */
$restforce = (new DemoSalesforceApi())->getClient();
/** @var \Psr\Http\Message\ResponseInterface $responseInterface */
$responseInterface = $restforce->create('Account', [
['Name' => 'Foo Bar 1'],
['Name' => 'Foo Bar 2'],
]);
Unfortunately in the current version we are not supporting multiple create. If you want to contribute it would probably be pretty simple to get in here. I wouldn’t mind answering any questions you may have. I will be quicker with the responses too 👍