Hi, how are you guys. First of all, thanks for tak...
# suitetalkapi
j
Hi, how are you guys. First of all, thanks for taking the time to read and support my question: I wonder, how can I get the list of ALL salesOrders with PHPToolkit? I tried this to get an individual SaleOrder, but I can't figure out how to get all of them. Any of you know?
Copy code
$request = new GetRequest();
$request->baseRef = new RecordRef();
$request->baseRef->internalId = "16989";
$request->baseRef->type = "salesOrder";

$getResponse = $this->service->get($request);

if ( ! $getResponse->readResponse->status->isSuccess) {
    echo "GET ERROR";
} else {
    $sale = $getResponse->readResponse->record;
    var_dump( '#############' );
    echo '<pre>'; var_dump( $sale ); echo '</pre>';
    var_dump( '#############' );
}
The code above works perfectly with a specified SaleOrder's ID, but I want them all. Thanks again and I'd appreciate your help. 👍
b
🙌 1