Forum Discussion

PushpakumarGna1's avatar
PushpakumarGna1
Qrew Assistant Captain
7 years ago

is it possible to run an automation before save?

Hi All,

I have a summary field called total in parent table, and in the detail table i have the values,

Now i have to capture the summary field value in the history table , before i save the detail table values when there is a change in the details table.

is it possible to run the automation before the save , so that i can run a action to capture the old summary value

its urgent , can some one please help

Thanks
  • I suggest that you trigger an Automation to record the Parent summary value upon any add modify delete change to the child records. Then you will always have the complete history. You do not need to record anything in the instant before the save, just record everything after the save and you will have a compete history.
  • PushpakumarGna1's avatar
    PushpakumarGna1
    Qrew Assistant Captain
    Hi ,

    The moment i change the value in detail table , the summary is recalculated . Now the parent has the new summary value. 

    Automation will run only after the save. So it is of no use . 

    Before the automation triggers , the value in the parent table changes.

    Thanks
    Pushpakumar
  • PushpakumarGna1's avatar
    PushpakumarGna1
    Qrew Assistant Captain
    can you please suggest is there any other way possible. I cant use snap shot since it is a formula based field
  • There is no problem with what I suggested. Just record the value of that summary field in a history table after each edit of the child tables records, What are you seeing as the problem with that solution?
  • There are multiple ways to do this with script. Unfortunately I am not going to create a demo as it would be very specific to choices I might make in an implementation and may not map to your situation as your question is rather broad (no table, relationship, field details).

    >its urgent , can some one please help

    If you need individual assistance feel free to contact me off-world using the information in my profile:

    https://getsatisfaction.com/people/dandiebolt