Skip to content
thesnowmonk.com

thesnowmonk.com

Servicenow Tips, Tricks and More.

Menu
  • Home
  • About
  • Contact Us
Menu

ReclaimNOW – Building a License Reclamation Application on ServiceNow – Part 1

Posted on May 9, 2023November 29, 2023 by Arun

We’ve always wanted to manage our ServiceNow licenses. But sadly, we haven’t been too successful with it with an optimised solution. In this multi-part blog post, I will be walking you through a custom application that helps manage your license reclamation process.

Alright! In a nutshell this is what the application does. It identifies users based on 3 criteria:

  1. When was the last active login of the user.
  2. Does he have a task assigned to him in the time window selected
  3. Is he the customer of a task in the time window selected

If a user matches these criteria, he is selected as a candidate for the license reclamation process. Along with this, we specify the roles that we would like to reclaim.

Now, what would be an ideal place to store these settings?! Hmmmm…You guessed it right! In properties! Let’s create a settings page, that houses all these properties.

It’s pretty simple to achieve this, using Properties Categories. I have a tutorial that accomplishes just that, be sure to check that out in the meantime.

The application start of execution

We all need an initiation point. Since, we need to execute this periodically, what better use of a Scheduled Job.

I am going to setup a scheduled job that executes every Saturday at 12AM.

The script contains calls to Script Includes that initiates the reclamation job runner.

var lrRunner = new LicenseReclamationJobRunner();
lrRunner.runJob();

That’s all for now folks!

Stay tuned for part-2!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

About This Site

This site is developed and maintained by a ServiceNow developer just like you! An ardent snowhead who is giving you tried and tested tips, tricks and other snippets to get you ahead of the game.

©2025 thesnowmonk.com | Built using WordPress and Responsive Blogily theme by Superb