Triggering a workflow with a button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mark
    Senior Member
    • Dec 2019
    • 143

    Triggering a workflow with a button

    Hi,
    Is it possible to trigger a workflow using this button - https://docs.espocrm.com/development/custom-buttons/ ?
  • dimyy
    Active Community Member
    • Jun 2018
    • 569

    #2
    See advanced:start-process-action-handler

    Code:
    {
    "menu": {
    "detail": {
    "dropdown": [
    "__APPEND__",
    {
    "name": "startProcessGlobal",
    "action": "startProcessGlobal",
    "label": "Start Process",
    "acl": "create",
    "aclScope": "BpmnProcess",
    "hidden": true,
    "data": {
    "handler": "advanced:start-process-action-handler"
    },
    "initFunction": "init"
    }
    ]
    }
    }
    }

    Comment

    • Mark
      Senior Member
      • Dec 2019
      • 143

      #3
      is it possible to trigger a specific workflow or a bpmn process automatically with a button?

      Comment

      • item
        Active Community Member
        • Mar 2017
        • 1476

        #4
        Hi.
        search public function startProcess( .. ) and public function triggerWorkflow( ... )
        so at your question : it seemt yes
        If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

        Comment

        • Mark
          Senior Member
          • Dec 2019
          • 143

          #5
          Could you maybe give an example of how all of this should look in code? Would be very helpful since there is no documentation about this part.

          Comment

          • joe
            Junior Member
            • Jan 2018
            • 5

            #6
            Any one can please help to give me an example?

            Comment

            Working...