Lorenzo
12/11/2024, 12:49 PMCeligo AI
12/11/2024, 12:49 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that you can add custom attachments to invoices through the REST API by using SuiteScript. Here's a general approach: 1. First, you need to upload the file to the NetSuite File Cabinet. This can be done by sending a POST request to the RESTlet and saving the file in the File Cabinet. 2. The file needs to be Base64 encoded and placed somewhere in the JSON request body. This is because files are inconvenient to handle directly, and Base64 encoding allows the file to be handled as text. 3. Once the file is in the File Cabinet, you can attach it to the invoice. This can be done using the
record.attach
method in SuiteScript.
Please note that this is a general approach and you might need to adjust it according to your specific needs. Unfortunately, no specific code samples were provided in the conversations.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
12/11/2024, 12:50 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816862702
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816826284
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81670934
Celigo AI
12/11/2024, 12:50 PM