Wayne Jiang Posted April 19 Posted April 19 We want to prevent some AR invoices from being emailed from within Intacct. The way we can think of is to mark the document as ‘Printed/Emailed’. But we found that the RAWSTATE field cannot be updated via the API. Are there any other ways to achieve this? Thanks.
Members Sterio, Louis Posted April 22 Members Posted April 22 Wayne, If you simply print the Invoice to PDF within Intacct I believe that should trigger the RAWSTATE field to change. Let me know if that doesn't work.
Wayne Jiang Posted April 22 Author Posted April 22 Hi Louis, Thanks for your reply. We would like to know if it is possible to mark an invoice as "print/emailed" using the API without printing it in Intacct manually. Do you mean using the API to print the invoice to PDF? If so, could you suggest an API function to do this please? Cheers.
Members Sterio, Louis Posted April 22 Members Posted April 22 Ah I see. If you retrieve the PDF via the API, Intacct will toggle the "PRINTED" field from "No" to "Yes" on the SODOCUMENT object. Just tested this for you. https://developer.intacct.com/api/order-entry/order-entry-transactions/#get-order-entry-transaction-pdf-data <content> <function controlid="testControlId"> <retrievepdf> <SODOCUMENT> <DOCID>Sales Invoice-INV-0051</DOCID> </SODOCUMENT> </retrievepdf> </function> </content> 1
Wayne Jiang Posted April 22 Author Posted April 22 Great! This is exactly what we want. Thanks Louis. 1
Recommended Posts