Function getCompanyID is not allowed in scope sn_sc in sandbox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2020 12:11 AM
I've created a variable set to use on my Request items
I want the variable set to provide logged in users manager, company and department, so I added javascript:gs.getUser().getManagerName() / .getCompanyID() / .getDepartmentID() as default value.
When checking out the order, I get an error; saying Function getCompanyID is not allowed in scope sn_sc in sandbox.
But it looks like every thing is working as intended, the information that I wanted is provided in the requested item, and the request is submitted.
But I don't like having an error message showing up every time somebody order something, and I have no clue on where to start fixing this.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2021 04:36 AM
Thanks for update. I too raised HI case for the same and they are still doing the Root cause analysis for the same.
Regards,
Mihir Rathod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2022 02:38 AM
Sorry to resurrect a bit of a zombie thread here but did you ever get anything back from HI regarding this?