Skip to main content

Hello Experts,

 

I'm trying to build a flow where I want to capture below fields on CASE:

 

Date/time of Last Call : Date/Time of last call activity on the Case

Date/Time of Internal Case Comment  : Date/time of last internal case comment on the Case 

 

Please Advise

Thanks As Always

7 answers
  1. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    Jul 10, 2023, 8:02 AM

    Yes, but you'll need a couple of flows.

    One on creation/update of tasks

    You'll need to see if it's the latest (if you go with the due date) and see if the subject is Call (or whatever you use to define it as a call task). In order to do so, you woudl use a Get Records on tasks where ParentId equals $Record.id

    You then sort it ascending by the date and get the first record and all the fields. If this is the same as the triggering record ($Record), then update a date/time field on the Case with {!$Flow.CurrentDate}

    You'll also need a flow on Delete so if a Task is deleted, you check if its date is the same as the one on Cases and that it is related to a Case. If it is, then again, use a Get Records on Tasks to find the latest one and replace the date/time field on Case with the value of the task in the Get Records. In this Get Record, make sure you also filter by Id not equal to $Record.Id as you want to exclude the record being deleted