Where is the 'getCapabilityMetadata' Scripted REST Resource referenced in ServiceNow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
In ServiceNow, I've had to make an amendment to the OOTB Scripted REST Resource 'getCapabilityMetadata' so that it references another Script Include to remove the 'Create sub-capability' action. However, I don't feel comfortable doing this and would rather make a clone of the Scripted REST Resource.
However, I need to know where the Scripted REST Resource 'getCapabilityMetadata' is currently be used or referenced so that I can make the amendments in those areas too to use my clone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
did you search in scripted rest api?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi @Ankur Bawiskar Yes. So I saw that it's part of Business Capability Hierarchy Scripted REST Service, however I'm wanting to know how it's referenced in EA Workspace?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi,
The getCapabilityMetadata REST API is the core configuration provider for the Business Capability Hierarchy view in the Enterprise Architecture Workspace. It include layout of the Capability grid, hierarchy and action.
Any customization in this OOB APIs may impact EA > Worspace Business Portoflio experience.
If the requirement it to remove "Create sub-capablity" action then the user should be given only view role, remove 'sn_apm.apm_user'. However it will revoke other actions as well.
If you are okay to own customization, the minimal impact approach is to update BCHMetaData script include. As it is evident that once this file has been updated, it will be skip for future upgrades.
Yogesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi @yogesh41 Thanks very much. What I've done is taken a clone of the OOTB page variant as well as a clone of the OOTB script include with the customisation, and I've referenced the cloned script include in within 'Business Capability Hierarchy'