Where can i find the code for this script?

joaosantos
Mega Expert

In the portfolio table (pm_portfolio) the field portfolio manager uses a reference to the table User with this reference qualifier javascript:'roles='+SNC.PPMConfig.getPortfolioManager(current.getTableName())

but the user that i added to the portfolio manager group is not appearing in the list, where can i see the code of this script

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Jaos,



The scripts with SNC. are the internal servicenow scripts which are generally not exposed to the developers. So it is very difficult to get access to these.



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Jaos,



The scripts with SNC. are the internal servicenow scripts which are generally not exposed to the developers. So it is very difficult to get access to these.



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

dvp
Mega Sage
Mega Sage

As far as I know most of script includes in PPS suite that starts with SNC are stored in black box which customers do not have access to see it


Michael Ritchie
ServiceNow Employee
ServiceNow Employee

Ankur and dvp are correct anything starting with SNC are in server side java code that is not exposed.   My suggestion to solve your issue is to compare the roles of this person you added to those that do show up in the reference dialog.   I suspect that the user you added to the group doesn't have a role as I believe that function limits the list of users to those with the correct role.   In other words it is not strictly based on group membership.


If these are internal code, is there at least any documentation on what the API has as:


  • Expected Input
  • What it does
  • Expected Output


It's fine if we can't modify the code, but there should at least be a reference for the API, as troubleshooting is time consuming.



FYI: gs.log(SNC.PPMConfig.getPortfolioManager("pm_portfolio")); in a background script returns it_portfolio_manager as the required role.