I am working with a developer that offers an app that lets you select files attached to a Case or Account (Salesforce functionality) to be downloaded to a Zip file. I am working with their engineering team because I cannot add the same functionality to ServiceMax objects which include Work/Service Orders and Installed Products.
Can you provide provide us the Test Coverage for their Existing Code, I have listed Trigger and Classes names below for which we need them to write Test Classes with at least 75% code
Apex class names -- Test Failures
Where all the classes due to which we are facing issues which are written by some other developers (in this case ServiceMax).
For those classes you need to write Test Class which will provide at least 75% Code coverage.
I appreciate any feedback...thanks
I'm not exactly sure which step is causing you problems, but it sounds like it could be a complicated task. I'll post some resources I've found and maybe it will lead you to a solution.
First, you should be able to query for attached files as they are represented by the Attachment class.
List<Attachment> attachments = [SELECT Id, Name FROM Attachment WHERE ParentId = :workOrder.Id];
As for compression, I'm not aware of a pure apex solution. It seems some people have had success by creating a Visualforce page that does client-side compression.
There also seems to be some AppExchange utilities that might help you.
Hope some of that helps.
Thanks for your assistance Garret...I have forwarded you ideas to my developer. I have been on another project for a while but I appreciate the speedy feedback.