restforcephp icon indicating copy to clipboard operation
restforcephp copied to clipboard

Can multiple records of the same object be created in one request?

Open gbrlmza opened this issue 8 years ago • 1 comments

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'],
]);

gbrlmza avatar Feb 05 '18 19:02 gbrlmza

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 👍

jasonraimondi avatar Feb 10 '18 10:02 jasonraimondi