Manipulating File Attachments

I got a question from a colleague today–not an uncommon one–regarding the correct usage of the GlideSysAttachment API.

Throughout my examples, you I will generally assume that you’re using the Scripts – Background module to test your code prior to deployment. As such, there will generally be three parts to my “code snippet” posts:

  1. Code Setup
  2. Function declarations
  3. Example

Since the majority of the time we’re running background scripts, we will be likely be transferring to a Business Rule, a Workflow Script or a Scheduled Job, you’ll see the following a lot. Continue reading