intacct / intacct-sdk-net

Official repository of the Sage Intacct SDK for .NET
https://developer.intacct.com/tools/sdk-net/
Apache License 2.0
31 stars 45 forks source link

AR Adjustment doesn't support custom fields #203

Open okmotsan opened 2 years ago

okmotsan commented 2 years ago

There appears to be a contradiction. In the ArAdjustmentCreate class in the WriteXml function it outputs the CustomFields into the XML data. However, in the API docs on the Intacct website there doesn't appear to be support for custom fields for the create_aradjustment XML API call and this seems to be true as when I send the request from .NET with custom fields set for an ArAdjustmentCreate object then I get an error indicating that the custom field node is not expected.

However in Intacct under the Platform Services it does allow me to create custom fields for the AR Adjustment object.

Also the counterpart in the payables (AP Adjustment) does appear to support custom fields.

TL;DR; why doesn't the AR Adjustment support custom fields via the API? It looks partially implemented but broken custom-fields-code intacct-custom AP-adj AR-missing

dylan-holt-sage commented 2 years ago

@okmotsan, interesting find...... we are going to look into this and get this resolved.... I'll keep you posted.

dylan-holt-sage commented 2 years ago

@okmotsan, can you share a snippet or example payload with sensitive information removed? We've researched internally and would like to verify how you're sending.

okmotsan commented 2 years ago

`<?xml version="1.0" encoding="utf-8"?>

C01566 2022 09 19 15549 1325021 Quality FRONT_END_SYSTEM RedactedName 21340 -0.05 REPP C01566 40250 -1 REPP C01566 ` I get the response: Response control status failure - XL03000003 XML Parse schema error: Error 1871: Element 'customfields': This element is not expected. Expected is one of ( externalid, basecurr, currency, nogl, taxsolutionid, aradjustmentitems ).. Line: 1, column: 0. [Support ID: rZQnrEB036%7EYyi3TP0U2TA-drwWK2JRHQAAAAo]
okmotsan commented 2 years ago

Is there any ETA for when this can be fixed? For our use case we have custom fields on both the Invoice and Credit (AR Adjustment) but only the Invoice appears to support populating the customer fields via the API

dylan-holt-sage commented 2 years ago

@okmotsan, waiting for a response on a question I have from the team responsible on this. Based on their response, I'll let you know what can be done, if anything.

liamstannard commented 1 year ago

Was this ever fixed?

Ansh-S commented 1 month ago

@dylan-holt-sage, was this fixed ? I am having the same trouble with BillCreate object. The SDK lets me pass the custom fields and returns a status of success as well but while retrieving back that bill record, I don't get the custom fields in the response.