Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

ATF - Custom Calculation

MerPetti
Tera Contributor

I am creating a test that requires a calculation and I'm not sure how to achieve this. When we close an Incident, we get a Resolve Date and a Close Date that is set to automatically close after 5 days.  When I attempt the field validation for Close Date is equal to Resolve Date = 5. But the glid_var doesn't render that field available as both fields are greyed out. 

 
 

ClosedDate Issue.jpg

Any guidance is greatly appreciated.

4 REPLIES 4

Sardash
Tera Guru

@MerPetti -

Use “Record Validation" step to validate 'Resolved date' and 'Closed Date' field value. Before that you have to use 'Record Query' step to find the Incident and then use 'Record Validation' step.
If 'Record Validation' step doesn't works then use "Run Server-side Script" step.
--------------------------------------------------------------------------------------------------------------------------------------------
If my response helped, please mark it by selecting "Accept as Solution" and " Helpful." 

Shaqeel
Mega Sage

Hi @MerPetti 

 

Could you share the screenshot of the expected result?

Do you want to validate the close date field to be 5 days from today, then you can use 

javascript: gs.daysAgo(-5)

 

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

MerPetti
Tera Contributor
 

Apologies for the delay. Here is the ATF Test I'm attempting to set up and the Incident List demonstrating the 3 columns I'm attempting to compare.

 

MerPetti
Tera Contributor

5D Variance.jpgJavaScript_Failed.jpgClose_VS_Resolve.jpg