intacct / intacct-sdk-js

Official repository of the Sage Intacct SDK for JavaScript in Node.js
https://developer.intacct.com/tools/sdk-node-js/
Apache License 2.0
22 stars 31 forks source link

No function for Get support for filtering GetList? #109

Open ianclark84 opened 1 year ago

ianclark84 commented 1 year ago

Hello -

I've been trying to figure out how to get an attachment ID after using Functions.Company.AttachmentsCreate() in order to assign the attachment ID to an AP Bill. This function does not return the attachementId and the "supdoc" object type isn't available through the Read() function.

The only way I can see to get the attachment ID is through the GetList() function at Functions.Common.GetList, which isn't in the documentation but I found by browsing through the repo. This function does not appear to support filtering? Is there a Get() function on the horizon, or support for filters in GetList()?

The GetList() function works and I'm able to retrieve the attachment ID and correctly update the Bill, but it will get out of hand pretty quickly without support for filtering as it returns all attachments.

Essentially I'm looking for the following in the SDK: https://developer.intacct.com/api/company-console/attachments/#get-attachment-by-id-legacy

Or am I totally missing the recommended way to get details for an attachment?

Thanks!