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.

How to trigger the "Subscription Overused" OOTB Notification

Dee13
Tera Contributor

Hello Community! 

This might be a simple solution but I've been wracking my brain for days. Hoping for your help.

I just configured Subscription Management for my organization and I now want the Service Desk Manager to receive a notification when Fulfiller licenses are over-allocated (which they currently are).

 

There's an OOTB notification called "Subscription Overused" which seems exactly what I need but for some reason it's not triggering. Here's the information I have under "When to Send"

Dee13_0-1675799335331.png

The OOTB condition is End dat at or after Today. I added the Allocated Status and Measured Role Types conditions. What am I doing wrong?

Many thanks!

3 REPLIES 3

LionelM
Tera Contributor

Did you ever found out ? i have the same problem, even is not firing after "licencing engine" calculate an over-allocated subscription

Dee13
Tera Contributor

I'm afraid not. I pretty much gave up on it as the value wasn't worth the effort in figuring out why this notification wasn't triggering.

LionelM
Tera Contributor

I have done the following :

1) Create a Business Rule on subscription_detail table to execute a script firing the event :

 

(function executeRule(current, previous /*null when async*/) {
gs.eventQueue("snc.subscription.overused", current, gs.getUserID(), "NAME OF YOU SUB");
})(current, previous);

 

2) designing a notification on table license_details sent when event "snc" is fired
 
It's working but not great yet