how to add option to attach pdf to cases in commun...
# ask-stanley-ai
h
how to add option to attach pdf to cases in communication for a user role?
c
AI generated answer (using internal Slack threads):
To add the option to attach a PDF to cases in communication for a user role, you need to give the role access to documents and files. This can be done in the NetSuite system by modifying the permissions of the role. If you are using SuiteScript 2.0, you can attach a PDF file to a record using the
record.attach
method. Here is a general idea of how you can do it: 1. POST the PDF to a RESTlet. 2. The RESTlet saves it as a file to the file cabinet. 3. Attach it to the desired record. Please note that files can be inconvenient to handle. You will need to base64 encode the file and place it somewhere in the JSON request body. If the user cannot view the attached PDF, make sure they have access to see documents in the file cabinet. Also, check if you have limited the access of Sent Emails or Received Emails folder. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825241208
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819022596
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813182831
Please provide your feedback on this answer.