NPS score calculation

priya110
Tera Contributor

Hi ,

I'm trying to understand how the asmt_nps_result table gets updated. After some investigation, I found that the Survey Core Util script include contains a calculateNPS function, which seems relevant. However, I haven’t been able to trace the exact logic or rules that trigger this function.

If anyone has insights or can point me to where this function is invoked, I’d really appreciate the help.

Thanks in advance!

 

 

2 ACCEPTED SOLUTIONS

kaushal_snow
Mega Sage

Hi @priya110 ,

 

The Survey Core Util script include contains the calculateNPS() method, which performs the Net Promoter Score logic.... However, ServiceNow does not provide a direct reference or visible trigger that invokes calculateNPS().... The function is used internally, and the platform handles its execution within backend survey processing workflows or scheduled jobs....

 

Check this article: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0830138

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

View solution in original post

5 REPLIES 5

priya110
Tera Contributor

Thank you all for the replies, much appreciated