BlogServiceNow

ServiceNow Spoke Action Locked? Copy It or Build a Custom Action

Scott Sternloff

By Scott Sternloff, Senior Enterprise Architect

LinkedIn · Updated · 5 min read

ServiceNow Spoke Action Locked? Copy It or Build a Custom Action
On this page

Short answer

ServiceNow spoke actions are typically read-only but can be copied and customized. When Copy action is missing, the action has a protection policy or you lack the role or developer permission, so you build a custom action in a scope you own, add error conditions and publish it.

ServiceNow says spoke actions are typically read-only, but can be copied and customized. When the Copy action option is missing, the action is a default ServiceNow action, it has a protection policy, or you lack the role or developer permission. At that point you build your own action in a scope you own. This guide gives the order of checks.

Custom actions are integration plumbing, and they belong to whoever owns the scope. If you want help designing them, see our ServiceNow consulting page. Everything below is from ServiceNow's documentation, read 4 December 2026; the product is now called Workflow Studio and the older name was Flow Designer.

Why can't you edit a spoke action?

Core actions that come with the instance cannot be viewed or edited from Workflow Studio. Spoke actions are typically read-only. Protection is a property of the action, set when its owner creates it in a scope the owner controls, and it defaults to None.

Why a spoke action will not let you edit it
What you seeLikely cause (ServiceNow documentation)What to do
You cannot open a core actionCore actions ship with the instance and cannot be viewed or edited.Call it from your own action instead.
Copy action is not in the menuA default ServiceNow action, a protection policy, or a missing role or developer permission.Check you have action_designer or admin. If the action is protected, build your own.
Copy action worksThe spoke action can be copied.Copy it into a scope you own and edit the copy.
The copy does nothing in a flowBy default the system runs only published actions.Publish the action.

How do you copy a spoke action into your own scope?

Copy the action when you can, because the copy keeps the original's inputs, steps and outputs. You need write access to the source action and the action_designer or admin role.

  1. Open Workflow Studio and choose Actions on the homepage.
  2. Select the action and open the more actions menu.
  3. Choose Copy action and enter a unique new name.
  4. In Application, pick the scope that should own the copy, then select Copy.
  5. Edit the copy, test it on a non-production instance, then publish it.

Decide which flows should use the copy, and list them before you start.

How do you build a custom action when Copy is not available?

When Copy action is not offered, create a new action. Choose New, then Action, and fill in the properties. Set Application to a custom application scope, because ServiceNow notes that a custom application lets you deploy the content through the application repository or the Store. Accessible From decides whether other scopes can call it.

  1. Define inputs and outputs first. Names such as sys_id, sys_created_by and sys_mod_count are reserved and cannot be input names.
  2. Add steps. The REST step is not in the base system and needs an Integration Hub subscription, so confirm your entitlement before you design around it.
  3. Use a connection alias on the REST step so the same action runs in each environment without new credentials.
  4. Test with sample inputs on a non-production instance before you publish.
  5. Publish. Only published actions run.

A related path for long-running work is the Data Stream action, covered in Data Stream actions and the 10 MB limit.

How do you call an external API with the REST step?

The REST step in an IntegrationHub custom action offers two ways to connect. Define the connection inline, or use a connection alias, which avoids setting credentials per environment because a change to the connection needs no edit to the action. With an alias the base URL comes from the alias, and you can override it. Build the request by hand, from an OpenAPI specification or from an existing REST message. Query parameters and headers may repeat a name, and the request body can be text, binary, multipart or form URL-encoded.

Three settings save a bad afternoon. The step has a retry policy for network failures and rate limits. Use MID runs the request through a MID Server, chosen automatically, by name or by cluster. Responses that are not saved are capped at 5 MB by default; Save As Attachment avoids the cap, or you can raise the glide.pf.rest.response_payload_max_size property, whose maximum is 10240 KB.

To use the response body, add a Script step. ServiceNow's documentation parses a JSON response with JSON.parse() in the script, and XML goes through the XML parser step. Map the parsed values to action outputs, including object outputs with nested fields. The Test REST step button shows outputs and errors before you publish, so run it first. Inputs and outputs of the action are what a flow designer sees, so name them for the person calling the action.

How should a custom action report errors?

Give the action its own error conditions, so a flow designer sees a code and message that mean something. A step returns 1 on any error and 0 on success, and you cannot change those codes or the step message.

  • Conditions are evaluated from top to bottom, and each works like an else-if, so only one applies.
  • The first match sets the Action Status code and message that you define.
  • With no match, the Action Status is the Step Status of the last step that ran.
  • Each step can continue to the next step after a failure, or go to error evaluation.

Write the list of failures you expect, such as a missing record or a 4xx response, as conditions before you write the happy path.

When should you generate a spoke instead?

Use the Spoke Generator when you are building many actions against one external API. It needs the Spoke Generator app from the Store and the Integration Hub Professional Pack installed and entitled, plus the admin role. You can import an OpenAPI Specification to create the actions, or add more by hand later, which needs admin or action_designer with delegated access to that application.

The generated scope name takes the form x_company-code_spoke-name_spoke, where the company code defaults to snc and comes from the glide.appcreator.company.code property. Who maintains the spoke after delivery is a contract question; see what to look for in a ServiceNow integration partner.

Sources

Frequently Asked Questions

Can I edit a ServiceNow spoke action in place?

Spoke actions are typically read-only. ServiceNow says they can be copied and customized, so copy the action into a scope you own and edit the copy. If Copy action is missing, build a new action.

Who can create a custom action?

Creating an action needs the flow_designer, action_designer or admin role. The REST step also needs an Integration Hub subscription, so check your entitlement with ServiceNow.

Why does my copied action not run in a flow?

By default the system runs only published actions, so publish it. The flow also has to be switched from the original action to the copy.

How does a custom action call a REST API?

Add a REST step. Define the connection inline or use a connection alias, build the request manually, from an OpenAPI specification or from a REST message, and parse the response in a Script step.

Scott Sternloff

Author

Scott SternloffSenior Enterprise Architect

Senior Enterprise Architect at AceMQ. Writes the technical coverage here: RabbitMQ, Kafka and Redis architecture, clustering and migrations.

Talk to an engineer

Need a hand with ServiceNow?

Senior engineers who run it in production. Get a quote or a free consultation, no sales pitch.

Free Consultation

Get Expert Eyes on Your ServiceNow Environment

Whether you're troubleshooting a production incident, planning a migration, or want a second opinion on your architecture — our team is ready. No pitch, just answers.

Email Us