1

In Lightning I am trying to write a trigger when user click "Upload New version" and try to upload. But i couldnt find tiggers to place some code before insert. enter image description hereIn Salesforce classic, i used triggers in content version. please refer the screen shot. enter image description here Any suggestion please how to fire triggers on "upload New Version" in Salesforce Lightning or how can we get the control to write some logic when user click on "Upload New version button"?

Thanks in Advance

  • I think the same triggers on ContentVersion should work for Lightning also. Uploading a new version inserts a new record in the ContentVersion object. – prashanthkr Nov 16 '16 at 19:13
1

The object underlying the lightning experience and the classic is same content version .

Looks like at this point the UI link to write triggers on content version is missing in lightning experience but that does not mean triggers wont work .

You can still code the triggers as needed using developer console or an IDE and everything should work in lightning experience .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.