2

I need to call a static method when the details page for an object loads. Currently, the only way I know I can do this is to create a Visualforce page and add it to the profile.

Is there another way?

  • What is it you are trying to accomplish? – Adrian Larson May 21 '15 at 21:20
  • I need to call a method in a third party managed package/plugin. – d0001 May 21 '15 at 21:23
  • Yes, you can create a webservice called by a self removing button. Let me know if you want details. – Caspar Harmer May 21 '15 at 21:29
  • 1
    Sound interesting but I'm not sure if its less "hacky" than embedding the a Visualforcepage. – d0001 May 21 '15 at 21:35
  • It's pretty hacky. But it has the advantage of being invisible, whereas the page is 200px that you can't hide... – Caspar Harmer May 21 '15 at 22:15