How to setup a limit on approval when reached max purchased right count on software entitlement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 03:43 AM
Hi Community,
Firstly, we should write a script to limit approval once reached purchased right in one entitlements. Firstly we should query the current members of the AD group and then count the number of purchased rights in one entitlements. Compare it against the purchased right limit. I had already written a script in run script workflow. But it's not working. @Dr Atul G- LNG @Ankur Bawiskar @Mark Roethof
Script :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 03:53 AM
script has issue in the way you are performing the query; this line
gr.addQuery('display_name=DocuSign DocuSign CLM+ Standard User for SFDC', item);
are these 2 catalog items? "DocuSign DocuSign CLM" and "Standard User for SFDC"?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 03:57 AM
@Ankur Bawiskar the add query which I gave is the entitlement name where we should check the purchased right count on this entitlement comparing with the group members of one group.
Thanks,
Spandana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 04:23 AM
the query is wrong.
Please correct it. We are not sure on the exact use-case, field names etc
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 04:33 AM
Firstly do we need to query the group and then compare the count on entilelment purchased right?
Thanks,
Spandana.