You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More specifically, OnlineResponse::$results[0]->data is empty when in fact something should be returned. This is important because it would help to receive the value of DOCID so that follow-up requests could be made. This is especially important for OrderEntryTransactionCreate to return the value so that follow-up requests could be made using either OrderEntryTransactionUpdate or OrderEntryTransactionDelete when needed.
As an interim solution, users would have to make a wasteful Query, searching for the SODOCUMENT object that was just created in order to get the value DOCID.
I did some research into why an empty array was being returned, and it's because the <key> isn't wrapped in a <data> element and/or <SODOCUMENT> element, which I believe the SDK (or response handler) is expecting with the response that's returned. Here's a sample of what the <result> element looks like as returned by OrderEntryTransactionCreate:
Here's a sample of what we have to do just to get the value of DOCID after creating a new sales order, which is a wasteful API request since the data has already been confirmed as being returned by the create request:
I also noticed (or couldn't find a way) to set the returnFormat to json. It looks like xml is hard-coded and hence why we have to use both json_encode() and json_decode() to easily parse the return data.
When creating, updating, and deleting results using the following classes, the
Result
object within theOnlineResponse
object returns an empty array:/src/Intacct/Functions/OrderEntry/OrderEntryTransactionCreate
/src/Intacct/Functions/OrderEntry/OrderEntryTransactionUpdate
/src/Intacct/Functions/OrderEntry/OrderEntryTransactionDelete
More specifically,
OnlineResponse::$results[0]->data
is empty when in fact something should be returned. This is important because it would help to receive the value ofDOCID
so that follow-up requests could be made. This is especially important forOrderEntryTransactionCreate
to return the value so that follow-up requests could be made using eitherOrderEntryTransactionUpdate
orOrderEntryTransactionDelete
when needed.As an interim solution, users would have to make a wasteful
Query
, searching for the SODOCUMENT object that was just created in order to get the valueDOCID
.I did some research into why an empty array was being returned, and it's because the
<key>
isn't wrapped in a<data>
element and/or<SODOCUMENT>
element, which I believe the SDK (or response handler) is expecting with the response that's returned. Here's a sample of what the<result>
element looks like as returned byOrderEntryTransactionCreate
:Here's a sample of what gets returned by other requests when
Result::$data
is NOT empty:It would also be nice if
RECORDNO
were returned when creating a sales order in addition toDOCID
in case it might be needed for something.The text was updated successfully, but these errors were encountered: