Performance analytics scripting (pa_scripts) in automated indicator

Community Alums
Not applicable

Hi all,

I want to call script include or subflow via writing scripts in automated indicator script is it possible or not?

Screenshot_2024-02-24-21-41-28-113_com.android.chrome.jpg

3 REPLIES 3

Allen Andreas
Administrator
Administrator

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!

AndersBGS
Tera Patron
Tera Patron

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/

Tai Vu
Kilo Patron
Kilo Patron

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