can we create trigger on contentdocumentlink that fires on insert and checks if it's on account then mark a checkbox as checked?

  • 2
    we are not writing your trigger. Please at least share what you have tried so far.
    – itsmebasti
    Commented Nov 3, 2017 at 19:55
  • 2
    i am asking is there a way to write trigger on contentlinkdoc
    – roni
    Commented Nov 3, 2017 at 19:59
  • sorry, but that's not how it works. If you have a new question, create a new question instead of replacing the old question. Please revert your changes and create a new question here
    – itsmebasti
    Commented Nov 5, 2017 at 19:21
  • 1
    Why so many downvotes? guy was just asking whether it is possible or not.
    – Sven
    Commented Dec 7, 2018 at 7:00

1 Answer 1


So if your question is, if it is possible, the answer is Yes. Seems like others have done this already: example 1, example 2

To create it, you can use the Developer Console, or you could use an IDE like Force.com IDE in Eclipse

  • sure, glad I could help you!
    – itsmebasti
    Commented Nov 3, 2017 at 20:11
  • how should i verify a contentdocumentlink is created in account from ui ??
    – roni
    Commented Nov 5, 2017 at 16:50

Not the answer you're looking for? Browse other questions tagged .