Run Jobs from button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhilash.kumar.niit
    Member
    • Sep 2024
    • 66

    Run Jobs from button

    Hi i have a created a custom job which i need to execute on button click. The button should be on the case list page any idea how can i do so????
  • yuri
    Member
    • Mar 2014
    • 8795

    #2
    Hi Abhilash,

    I recommend to move the logic to a separate class. Your job will call this class.

    Then, you can create a custom formula function that will also call that class.

    Then, you can create a manual-trigger workflow that will call your formula function.

    Use the constructor dependency injection to pass your class to the job and formula classes.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...