Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Report 30 days from Expiration Date

HenryD
Tera Guru

Hello, right now we have a custom field that stores a "Expiration Date" that the user submits for a form. is there anyway to get a report to show when that expiration date gets within 30 days it will expire. 

 

 

3 REPLIES 3

AnirudhKumar
Mega Sage

Scheduled jobs to the rescue!

Have one the runs every day at midnight. The script needs to perform a query of the records, then for each record perform a date difference, and return the record if the difference is equal to 30.

 

Edit: My bad! Sanjiv's solution is better..

SanjivMeher
Mega Patron
Mega Patron

Yes. In the report you can create a filter using 'relative' operator

Ex.

SanjivMeher_0-1721263076505.png

 


Please mark this response as correct or helpful if it assisted you with your question.

AndersBGS
Tera Patron
Tera Patron

Hi @HenryD ,

 

The relative operator in the report designer will help you out with your question:

AndersBGS_0-1721280036414.png

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders 

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/