Performance analytics scripting (pa_scripts) in automated indicator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2024 09:21 AM
Hi all,
I want to call script include or subflow via writing scripts in automated indicator script is it possible or not?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2024 01:12 PM
Duplicate post: https://www.servicenow.com/community/performance-analytics-forum/performance-analytics-pa-script-in-...
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2024 11:13 PM
Hi @Community Alums ,
No, that is not possible. What is it that you would like to do? What is the business case?
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
02-25-2024 11:40 PM
Hi @Community Alums
Yes you can call a script include within the PA Scripts. That's actually one of the Tips on Scripts of Scripting in Performance Analytics.
Tips on scripts
- In general, use scripts only to support indicators like Age with date processing, using the score_start and score_end variables.
- Limit unnecessary fields. Every time you include an extra dot-walked field, you add an extra join to the query.
- Try to replace manual breakdowns with database views for better performance.
- Try to use script includes for common functions. For more information, see Script includes.
- If the data is not structured in a way you need for reporting, try adding 'reporting fields' to the operational tables instead of creating scripts. For more information, see this Community post.
- If you are running a background script that queries the Performance Analytics scores or snapshots tables, you cannot access data about a scoped application unless you have an appropriate role for that application.
Cheers,
Tai Vu