Skip to content

Conversation

@zakir8992
Copy link
Contributor

This Action takes two inputs, User and Task Type (choice: Incident, Case, or Work Order).
It is performed for the affected user, for whom the task is created (the Caller in Incidents or the Contact in Cases).

Based on the selected task type, the script maps it to the corresponding table and reference field (caller_id, contact, or caller).
It then executes a query to fetch all active (non-closed, non-resolved, non-canceled) records associated with that user.

The Action returns two key outputs:

  1. Number of active records found for table chosen
  2. Active task numbers for table chosen

@github-actions
Copy link

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@snamjosh snamjosh self-assigned this Oct 29, 2025
Copy link
Contributor

@snamjosh snamjosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution.
However, can you try using GlideAgreegate API instead of GlideRecord for better performance?
Update your code and let me know.

@zakir8992
Copy link
Contributor Author

@snamjosh
Thanks for suggestion, will make required changes soon and update the code.

@zakir8992
Copy link
Contributor Author

@snamjosh
I have made changes, changed glideRecord to glideAggregate.
Thankyou

@snamjosh snamjosh merged commit 1a435ef into ServiceNowDevProgram:main Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants