Skip to content
Snippets Groups Projects
Commit 95b9a642 authored by Dimitris Bozelos's avatar Dimitris Bozelos
Browse files

Issue #3359840 Fixed issue with retrieving record with multiple keys

parent aa683ca5
Branches
Tags
No related merge requests found
......@@ -81,7 +81,11 @@ class ExportLocalEntityMapping extends ExportLocalEntityMappingBase {
try {
$object = $this->clientFactory
->getByClientConfig($entity_mapping['client'])
->getByKeys($key_values);
// The OpenAPI-generated clients concatenates keys provided as an array
// using `,` before using them in the URL, while Acumatica actually
// expects them separated by `/`. Do this here and provide all keys as
// if it were one to avoid this problem.
->getByKeys([implode('/', $key_values)]);
}
catch (\Throwable $throwable) {
if (!$throwable instanceof $exception_class) {
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment