4

Can we trigger a plugin when we click on the account entity link from side navigation, like Workplace > Account. Normally we can create Create or Update plugin, but I need such plugin which will fire when a entity is open. which Message we have to write when we register the plugin through plugin registration tool if we can do the above?

aanch
  • 167
  • 1
  • 4
  • 8

2 Answers2

4

I haven't tried it myself but I believe there is a plugin message 'Retrieve'.

There is a simple-enough-to-follow blog post on it here.

glosrob
  • 6,631
  • 4
  • 43
  • 73
  • +1, but I can see this becoming a real resource hog over time (as the blogger mentions). The `RetrieveMultiple` message might also be applicable. – Peter Majeed May 10 '12 at 14:07
  • FWIW agree with @PeterMajeed - as always, developer beware :) – glosrob May 10 '12 at 14:12
  • 1
    Keep also in mind, that you are not able to detect *who* retrieves a record (form, web service, ...) – ccellar May 10 '12 at 15:07
0

A quick supported kludge I can think of is to use a CustomRule on a bogus button in the HomepageGrid ribbon to trigger the creation of a custom entity that in turn activates a Create plugin. See the below links for more detail.

Community
  • 1
  • 1
Peter Majeed
  • 5,304
  • 2
  • 32
  • 57