intacct-sdk-js icon indicating copy to clipboard operation
intacct-sdk-js copied to clipboard

No function for Get support for filtering GetList?

Open ianclark84 opened this issue 2 years ago • 0 comments

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!

ianclark84 avatar Nov 04 '22 20:11 ianclark84