Announcement

Collapse
No announcement yet.

Workflow - Run service action problem

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

  • Workflow - Run service action problem

    When i save an entity in workflow with run service action and that service saves the same entity again, the stream reports a update post twice for the same update. Is there anyway to fix it.

    My Service action:

    PHP Code:
    class CustomServiceActions extends \Espo\Core\Services\Base {
          public function 
    action($workflowIdEntity $contactEntity$additionalParameters null) {
                
    // do something
                
    $this->getEntityManager()->saveEntity($contactEntity);
          }


  • #2
    $this->getEntityManager()->saveEntity($contactEntity, ['skipWorkflow' => true, 'skipModifiedBy' => true]);

    Comment


    • #3
      Thanks. skipAll worked for me!

      Comment

      Working...
      X