Is it possible to run (using a script) a Performance Analytics Data collection job?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2024 11:59 AM
Hi gurus!
I´m wondering if such thing is possible, I have PA Data Collection job that runs "on demand" using 2 basic parameters:
- A fixed start date and a fixed end date
-a couple of existing indicators that are added in the indicators list
Currently in our operation we select manually those parameters but im wondering if there is a way for us to run a script on demand also to run that recollect data job.
I really thank you in advance for your suggestions!
- Labels:
-
Performance Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2024 12:51 PM
Hi @cristian1988 ,
i dont get your requirement… what should the script be like? What should trigger the script? What is the business case for that performance analytics data collection?
if my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2024 01:11 PM
Hello @AndersBGS !
Thank you so much for your response,
Here our context:
- We trigger our process by deleting an assessment instance that get into "discussion" due to bad scoring or so.
-Once we delete that assessment survey, based on the type of task that it was associated to (a RITM or an INC), we have to run this data collector job using 3 basic parameters:
1-the date that the assessment was taken on, as a "fixed end date"
2-the date before the assessment was taken on, as a "fixed start date"
3- in the "indicators" list, at the bottom of the data collect job page, we select certain indicator(s) based on the "assignment group" that the assessment instance task had (remember that the task could be either a RITM or an INC)
4- Once identified the correct indicator, we just hit the "execute now" button, we receive a confirmation message that the job is running and that's it,
So basically I'm looking for a way to create a script that could receive that info as inputs to run the Performance Analytics data collection that we currently run manually.
I hope I made my self a bit clearer
-Much appreciated!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 07:31 AM
I have a PA Data Collection Job. Can I trigger that to run via a SCRIPT?
For example, I have a Data Transform that loads data into tables ... when the LAST transform runs, I would like to trigger the PA collection.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 07:35 AM
This was ChatGPTs suggestion.
var paJob = new PAJob();
var jobId = 'your_pa_job_sys_id'; // Replace with the actual Sys ID of the PA data collection job
var result = paJob.startJob(jobId);
if (result) {
gs.info('PA Data Collection Job started successfully.');
} else {
gs.error('Failed to start PA Data Collection Job.');
}