Workflow Conditions: select specific instance of multiple linked entitities

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SuperEwald
    Junior Member
    • Jun 2018
    • 9

    Workflow Conditions: select specific instance of multiple linked entitities

    Hey there,

    I'm trying to accomplish the following but didn't found a propper way and now I'm whondering wether it's even supporter.

    I have an entity "Task" and "Prospect". Prospect has "hasChildren" relation to "Task" (like when you use the basetype "BasePlus").

    In a Worklfow (I'm using BPMNs for that), I want to check for a field on the *latest added* Task. So I have to get all linked Task entities, filter them for the latest record and then do something withe the resulting record.

    But how can I filter a multiple relation to get one specific object I can reuse in Formular (or even per GUI if thats supported).

    Thanks in advance!
    Greets, SuperEwald.
  • yuri
    Member
    • Mar 2014
    • 8453

    #2
    Hi,

    I think it's not possible at this moment. I recommend to create a custom formula function.
    Last edited by yuri; 08-24-2019, 06:06 AM.
    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

    • SuperEwald
      Junior Member
      • Jun 2018
      • 9

      #3
      Originally posted by yurikuzn
      Hi,

      I think it's not possible at this moment. I recommend to create a custom formula function.
      Thanks for pointing them out, works great!

      Comment

      Working...