Workflow updates opportunity field, Flowchart - not

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alexvam1
    Junior Member
    • Oct 2023
    • 18

    Workflow updates opportunity field, Flowchart - not

    Hi!

    I have two fields in Opportunity:

    Delay and Compensation

    I need to update compensation field depends on delay value

    To make this, i have Flowchart, that run service method when delay was changed.

    Click image for larger version  Name:	image.png Views:	0 Size:	68.6 KB ID:	116565

    Click image for larger version  Name:	image.png Views:	0 Size:	68.1 KB ID:	116566

    Opportunity Recalculation Code like this:

    Code:
    $entity->set('compensation', 123);
    $this->entityManager->saveEntity($entity);


    Then i try to change delay.

    UI of opportunity updated, delay updated.

    Compensation field NOT updated at the UI.


    If i reload browser page, compensation updated.



    It's interesting, if i add the same Workflow.

    Click image for larger version  Name:	image.png Views:	0 Size:	53.8 KB ID:	116567

    Compensation field changed immediately, without page reload.



    I don't understand, why flowchart is not update compensation field immediately, without page reload.

    What's dirrefent in workflow and flowchart? Workflow is good and expected. Flowchart update field with lag, or somethings. I can't understand, why.

    P.S. We have this working in Espo 5. But after upgrade to Espo 8.0.6 we have this strange behavior.
    Last edited by alexvam1; 04-09-2025, 05:14 AM.
  • yuri
    Member
    • Mar 2014
    • 8845

    #2
    It's how it's been working for a while (or maybe since the beginning). Will be improved in the future version.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...