yes of course.. very simply.. but i learn in same time
![Smile](https://forum.espocrm.com/core/images/smilies/smile.png)
<?php
$manager = new \Espo\Modules\Advanced\Core\Bpmn\BpmnManager($this->getContainer());
$em = $this->getEntityManager();
$flowchart = $em->getEntity('BpmnFlowchart', '5f8963ad6651b02e5');
$target = $em->getEntity('Contact', '5cec214e20cb3d7f3');
$elementId = $flowchart->get('eventStartAllIdList')[0];
$manager->startProcess($target, $flowchart, $elementId);
<?php
curl --location --request POST 'https://rest.spryngsms.com/v1/messages' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer xxxxxx' \ --header 'Content-Type: application/json' \ --data-raw '{ "body": "This is a test message.", "encoding": "auto", "originator": "DocsTest", "recipients": [ "31612345678" ], "route": "business", "scheduled_at": "2019-01-01T15:00:00+00:00" }'
?>
Leave a comment: