send email attachment without saving file but with...
# ask-stanley-ai
k
send email attachment without saving file but with different name
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that renaming a file that will be attached to an email is not directly possible in NetSuite. However, you can create a file, attach it to an email, and then delete it if necessary. You can create a file and attach it without saving it to the File Cabinet. For example, you can create a PDF of a transaction with
render.transaction()
and attach that in your
email.send()
. You just need a File Object, not an actual file saved to the File Cabinet. However, it's important to note that this method might still save to the file cabinet on emails sent. If you are trying to avoid file cabinet size limitations, you can add the file to an external system and link to that, such as an S3 bucket on AWS, OneDrive, etc., depending on your security needs. Unfortunately, there is no direct way to link transaction attachments to emails. You need to download them from the transaction's Files tab and attach them again manually. Alternatively, you can use a workflow or script to automatically copy important attachments to a standard File Cabinet folder, which makes them easier to find while composing an email. ****** 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.821411192
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81878674
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818420529
Please provide your feedback on this answer.