You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Getting File Attachment Data; Deleting File Attachments With CPHP

Accepted answer
edited Jun 8, 2022 12:02PM in General Technical Discussions 9 comments


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.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!