Run Jobs from button

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

    #1

    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
    EspoCRM product developer
    • Mar 2014
    • 9599

    #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.

    Comment

    Working...