Closest date from related records

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mark
    Senior Member
    • Dec 2019
    • 143

    Closest date from related records

    Hi,
    I want to make it so a field "Delivery date" in my case would be filled in automatically according to related records "Order items". The value that would be placed in the "Delivery date" should be the latest date from those related "Order items" (Every order item has its own delivery date and I need to take the max date value, but I could not find a way to do it in Espo).
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hi,
    Workflow can help you. For example:
    1. I created the 'itemDeliveryDate' field for the Sales Order Items entity;
    2. I created the 'deliveryDate' field for the Sales Order entity;
    3. I created the workflow provided on the screenshot below:

    Attached Files

    Comment

    Working...