Announcement

Collapse
No announcement yet.

Triggering a workflow with a button

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Triggering a workflow with a button

    Hi,
    Is it possible to trigger a workflow using this button - https://docs.espocrm.com/development/custom-buttons/ ?

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


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

      Comment


      • #4
        Hi.
        search public function startProcess( .. ) and public function triggerWorkflow( ... )
        so at your question : it seemt yes

        Comment


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


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

            Comment

            Working...
            X