Skip to main content
phaneendhar_lingam
Contributor ⭐️⭐️⭐️
July 15, 2020
Development

History Tracking for MDA Objects

Related products:CS Rules Engine
  • July 15, 2020
  • 60 replies
  • 2915 views

History tracking data is important for  trend analysis/ forecasting. But, there could be some objects where we are required to maintain just the snapshot data. For example in standard objects like Company/ User or any custom objects – In Company, when did the CSM change or what was the previous ARR?

As of today, we do not have the luxury of keeping historic changes in Gainsight but with the help of rules/ objects we can still accomplish this.

 

For demonstration – I’ve created the object ‘Kite Info’, which is loaded around 7am daily.

Schema as follows,

{*Kite Id(String); Kite Name(String); Kite Date (Date); Kite Value (Number); Kite Location (String) }

*Kite Id is the identifier field.

I’ve created a backup object that has only those fields which require history tracking(along with the Identifier) – ‘Kite Info Bkp’. This object is loaded 10am daily.

But, for the first time – data from ‘Kite Info’ is loaded once ‘Kite Info Bkp’ is created.

{*Kite Id(String); Kite Date (Date) ; Kite Value (Number);  Kite Location (String) }

*Kite Name is consistent hence not required for tracking.

 

Rule Name -> ‘Load Kite Info Backup’, scheduled to run at 10am

Load all the values from ‘Kite Info’ to ‘Kite Info Bkp’ with Upsert operation and Identifier ‘Kite Id’

 

History Tracking object – ‘Kite Info History’

 

Column Name

DataType

Kite Id

String

Kite Date New

Date

Kite Date Old

Date

Kite Value New

Number

Kite Value Old

Number

Kite Location New

String

Kite Location Old

String

Kite Date Changed

Boolean

Kite Value Changed

Boolean

Kite Location Changed

Boolean

Changed Date

Date

 

History Tracking Rule Setup,

Rule Name à ‘Kite History Tracking’ ; Scheduled to run at 9am daily.

“Timing of this rule is of highest importance – this should be scheduled to run after the source ‘Kite Info’ is reloaded but before the backup object ‘Kite Info Backup’ is refreshed.

In the Merge task, I’m doing inner join on Kite Id.

 

Fields in the Transformation task ‘Change Capture’ are as follows,

  • Those with prefix ‘new’ are from ‘Kite Info’
  • Those with prefix ‘old’ are from ‘Kite Info Bkp’

Field List – Kite Id, Kite Date Old, Kite Date New, Kite Date Changed and similarly for Kite Value and Kite Location

Case statement,

When ‘Kite Value New’ not equals ‘Kite Value Old’ then ‘Kite Value Changed’ is True

Similarly for Kite Date and Kite Location.

I’m introducing another case field as,

When

‘Kite Value New’ not equals ‘Kite Value Old’ (OR)

‘Kite Date New’ not equals ‘Kite Date Old’ (OR)

‘Kite Location New’ not equals ‘Kite Location Old’

Then ‘Changes Made’ is True

Only if the above value true, a record will be considered for inserting into History tracking object.

 

Loading into History Tracking object is of INSERT type action, as we have to capture all the changes being done.

60 replies

Contributor ⭐️⭐️⭐️
October 27, 2020

+1 would be great to have this

phaneendhar_lingam
Contributor ⭐️⭐️⭐️
November 6, 2020

Hi @john_apple I have included ‘changed date’ field to track when an update was made on a field. 

meenal_shukla
Gainsight Employee ⭐️⭐️
December 9, 2020

@pgeorge : Is History tracking coming in the next few releases? Above solutions seems like super overkill.

Outplay. Outwit. Outlast.
andreammelde
Helper ⭐️⭐️
December 9, 2020

It would be helpful to have the workaround in Sightline Vault to make it easier to implement 

Andrea Carroll
pgeorge
Gainsight Employee ⭐️
Gainsight Employee ⭐️
December 14, 2020

@meenal_shukla 

It is not planned in the next few releases, the team is evaluating the technical possibilities. Once the roadmap is fixed, will share the details. 

Thank you 

Preethi

bradley
Expert ⭐️
January 6, 2021

@pgeorge Looking forward to seeing it on a release plan!

Contributor ⭐️⭐️⭐️⭐️⭐️
March 23, 2021

Yes, History Tracking for all MDA is definitely needed.

Muthu Kumar Karuppiah
narayanan_s
Contributor ⭐️⭐️⭐️⭐️⭐️
March 23, 2021

Possibly approaching 10 fields history tracking per mda as first go would be great pick. 

Narayan
ssamarth
Gainsight Employee ⭐️
Gainsight Employee ⭐️
April 6, 2021

@kumaranbcak  @narayanan_s  Thanks for the feedback. Field history is part of our roadmap .

Helper ⭐️
September 9, 2021

+1 to this! It should be way easier to enable field history.