Hi All,
For Opportunity Entity I have enabled SharePoint Out of the Box integration so the user can upload attachments for the opportunities. Last month the customer added a requirement related to SharePoint, basically is to send an email when a user adds a Attachment to the Opportunity(through SharePoint).
My original idea was to create a plugin on Retrieve and Update of Opportunity, so the plugin will count the total of documents when the record is Retrieved/updated and will check if there's a difference in the total of attachments(If TotalDocuments_at_Update > TotalDocuments_at_Retrieve then trigger workflow). After some investigation I was able to retrieve the total of documents for an specific opportunity folder in the SharePoint server using Plugin/Web services, the problem started when I noticed that when a user adds an attachment there's no Update process for the opportunity, this means that if the user close the browser or just don't update anything in the opportunity the plugin on update will not be triggered and hence the validation that checks if there's a difference will not be triggered either.
My question at this point is: if there's a way to intercept or catch the process of uploading an attachment to SharePoint? Maybe through a function of JavaScript or something. I remember that the SharePoint window that appears when you click on Documents in the Ribbon bar is an iFrame with source pointing to the SharePoint server, but I tried to get that HTML and I could't.
Any suggestions?
Thanks in advance!
*This post is locked for comments
I have the same question (0)