Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to Remove the “Duplicate” Option from the Prioritization List in ServiceNow Strategic Portfolio

vandanasaluja
Tera Expert

In ServiceNow Strategic Portfolio Workspace (SPW), users working with the Prioritization list can access several actions from the row context menu, such as:

  • Move to top / Move to bottom
  • Duplicate
  • Delete
  • Open

In our use case, the requirement was to remove the “Duplicate” option for all users from the Prioritization list, while keeping the other row actions unchanged.

The challenge was that Duplicate is not implemented as a standard UI Action or Declarative Action. Its visibility is controlled through the Portfolio Planning server-side configuration.

This article explains how we identified the underlying configuration and implemented the customization using the available extension Script Include.

 

The Logic Reside in APWBacklogConfigImpl Script Include  but this was OOB and Readonly so we cannot modify it 

The  Editable Extension for this was APWBacklogConfig so we modify it to 

var APWBacklogConfig = Class.create();

APWBacklogConfig.prototype = Object.extendsObject(
APWBacklogConfigImpl, {

initialize: function(table, scenarioId) {

APWBacklogConfigImpl.prototype.initialize.call(
this,
table,
scenarioId
);

},

/*
* Disable Duplicate option
* for SPW Prioritization
*/
getConfig: function(canWrite, source) {

// Retain the complete OOB configuration
var config =
APWBacklogConfigImpl.prototype.getConfig.call(
this,
canWrite,
source
);

// Disable Duplicate functionality
config.canCopyItem = false;

return config;
},

type: 'APWBacklogConfig'

});

 

 

so the Resulting behaviour works like 

APWBacklogConfigImpl.getConfig()

Generate standard configuration

APWBacklogConfig override

canCopyItem = false

Duplicate criterion no longer matches

Duplicate option is not displayed

1 REPLY 1

Hemanth M
Tera Sage

Hi @vandanasaluja ,

 

It took me few minutes to figure out what is the question, if you would like to write an article please reach out community admins, they can help you.

 

Link: https://www.servicenow.com/community/help/faqpage/title/community-admin-team

 

HemanthM_0-1788775138225.png

 

Hope it helps!

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025,2026