Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hi All, Can someone please explain what does this script fetching? "roles="+SNC.PPMConfig.getProjectRole('manager', current.getTableName())

vyshnavi_hn
Kilo Contributor

This is a reference qualifier used for selecting project manager in pm_project table. But not understanding the segments like what is SNC, What is PPMConfig.
so please help me with this.
Thanks 

1 REPLY 1

Sunil B N
ServiceNow Employee
ServiceNow Employee

It invokes Java API exposed to Scripting, "SNC" signifies that.

And SNC.PPMConfig.getProjectRole get you the respective role based on table and teamspace. 
There will be different roles for teamspaces. 

In case of pm_project(or without any teamspaces), it would return it_project_manager here.