Flowchart check one to many related records

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Arno PAX
    Junior Member
    • Mar 2020
    • 8

    Flowchart check one to many related records

    Hi,

    Is the below possible and if yes how?

    I have on order with orderitems (products)

    I want to have a workflow or process/flowchart that dos the follwing:

    When an order is added it wil check an attribute on all the products in the order to see if they have a certain value and if yes send out an email.

    I tried several things with formula's like entity\sumRelated but I cannot seam to find a working solution.

    For now I have a workaround that involves updating an attribute in the order table when products are added and I check that attribute but that's not ideal...
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi,

    You can try record\findRelatedOne https://github.com/espocrm/documenta...findrelatedone

    Use it to check whether there's any record that met a specific criteria.
    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...