You need to sign in to do that
Don't have an account?
Zakir Hussain
Implementing
Hi All,
I have created a custom object. Whenever we create a record, by using Notes & Attachments I'm attaching a pdf file to it. Now my requirement is, whenever user attaches a PDF file to a record, on the backend I need to run a process which will convert the attachment into PDF stream and send to third party system.
Can anyone help me on this like how can i apparoch to it !!!
I have created a custom object. Whenever we create a record, by using Notes & Attachments I'm attaching a pdf file to it. Now my requirement is, whenever user attaches a PDF file to a record, on the backend I need to run a process which will convert the attachment into PDF stream and send to third party system.
Can anyone help me on this like how can i apparoch to it !!!
You can write a trigger on attachment and call the class in trigger which will have logic to convert attachment in pdf and send to third party.
for trigger sample code:
https://help.salesforce.com/HTViewSolution?id=000181538&language=en_US
hope this will help you to get started.
Thanks,
Pratik
Appreciate your reply on this....
Pratik is right .. you have to write an attachment trigger (which means to code APEX) to handle all new added attachments. In fact attachments are salesforce objects with a parent which is an account, case etc. So there is no folder or location to scan and you cannot develop a java plugin for it. If you like to handle existing attachments a (scheduled) batch job might be a solution .. otherwise the trigger is exactly what you are looking for.
Best,
Andreas
regards,
Pratik
I tried to code apex trigger to meet my requirement. As I'm new and learning by self, not able to code exactly to meet my requirement. Can anyone of you provide me the code that will help me to meet the above requirement.