How to avoid Hardcoded values in Service now RPA

NitikaT
Tera Contributor

Hi Team,

We are currently encountering the following challenges while working with Snow automation:

  1. Queue Name in Properties:
    We are unable to use a variable for the queue name within the Properties pane—it only accepts hardcoded values. Is there a way to dynamically pass a variable instead?

NitikaT_0-1751953905790.png

 

  1. Universal App Connector – URL and Data Extraction:
    While configuring screens and windows in the Universal App Connector, we want to pass a variable in the URL field. However, the URL property does not accept variable input. Additionally, during data extraction, we're unable to dynamically increment and use variables to reference specific td or tr elements.

NitikaT_1-1751953905793.png

 

  1. What are the best practices for managing environments, and how can we effectively migrate from one environment to another?

Your guidance on these issues would be greatly appreciated.

Thanks & Regards,

 

1 REPLY 1

Swathi Pavani1
ServiceNow Employee
ServiceNow Employee

Hi @NitikaT 

1. Queue Name in Properties:

Response:

The queue name must be unique, and currently, we have the option to hardcode it. Without hardcoding, it cannot be defined, as the queue name must match the name of the queue on the RPA Hub. This is necessary to ensure that the correct queue is specified for communication with the bot process on the Hub.

Queue Connector Documentation

 

2. Universal App Connector – URL and Data Extraction:

Response:

Yes—the URL cannot be directly entered into the configuration window. However, to navigate to a specific URL, you can use the Start method within the Object Explorer (double-click on the Universal Application under the Global Object) or StartApp method from tool box. This allows you to dynamically launch the application's URL.

If you want to interact with the launched application, ensure that all necessary elements are captured using the UAC Configure window.

Additionally, if you would like to validate the URL and elements, you may follow the steps below:

  1. Right-click on the Universal Application Connector.
  2. Click on Captured Screen.
  3. Under Screen and Match Rule, select the URL property.
  4. In the Screen and Elements section, go to the Properties tab and expand General.
  5. Update the Compare Value and Actual Value as per your requirements.
  6. Click Done.

Universal App Connector Documentation

 

3. Migration of Content:

Response:

To migrate content from lower to higher instances, please refer to the document linked below. You can use the Migrate button available in the bot process to initiate the migration.

Bot Process Migration Documentation


Please consider marking this as helpful if it has resolved your issue.

Thanks