Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
How to access the output returned by an Orchestration Activity - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to access the output returned by an Orchestration Activity
KB0635207

How to access the output returned by an Orchestration Activity


9071 Views Last updated : Jul 24, 2025 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

This article describes how to use the Orchestration Databus to access the output returned by a powershell activity. 

How To

In this article, we'll use an example custom powershell activity that pings a host. The input IP address is passed by a service catalog item, which in turn triggers the workflow with the custom activity.

The Outputs section of the activity contains two output variables, as seen in the following screenshot.

 

  1. Add the Ping Server activity and a Run Script activity into a workflow.
  2. Inside the Run Script activity, access the Databus variables using the method data.get().
    • The data.get() function receives an integer as its argument.
    • The integer number should match the number used by the Databus to refer to the activity. In this case the number is 3, this number can be seen to the righthand side of the activity name.

      Accessing the Databus Variables from within a Run Script activity

In the screenshot above, the output is passed to a workflow.scratchpad variable which can be used in other parts of the workflow.

With the steps given above, the data returned by an orchestration activity can be used successfully in other parts of a workflow.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.