Count Distinct PA Script of Knowledge Used on Incidents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 11:44 AM - edited 06-05-2024 06:43 AM
Hi All,
I attempting to create a PA script to find the count distinct of knowledge articles marked as either this helped or attach on incidents. To do this, I know I need to query the cxs_relevant_doc_task table to find out if the incident was marked this helped or attach. Then I want to get the COUNT DISTINCT aggregate of the incident number for my automated indicator. I wrote the script below but I'm getting an error when I run the job to test "Error during JavaScript evaluation com.snc.pa.dc.ScriptException: JavaScript evaluation returned: Undefined in script". Any help with this code would be appreciated!
- Labels:
-
Performance Analytics