Getting File Attachment Data; Deleting File Attachments With CPHP
Content
Is there a way to get incident file attachment data in CPHP? I'm not talking about the metadata like created date, name, and etc. What I'm interested in is the file's actual data. It's not returned by a standard fetch (Usage on Get is "Not Returned.") This can be done in CWSS with the GetFileData() method, but I need to do it with CPHP. Poring over the documentation, I'm not seeing a way to do it, but maybe I overlooked it. CPHP features makeFile() and setFile() methods that may come in useful, if I can get the data for an attachment that's already present on the incident.
0