How to get Instance url in the description field using Flow designer in ServiceNow

Rashmi N
Tera Contributor

Hi,

 

I have created a flow designer for Mid server status changes, whenever the status changing to up and down, one incident will create stating that Mid Sever status Changes to up/down.

 

I need to add the instance URL (Dev/Test/Prod) in the description filed using flow designer in which instance the mid server status is changing.

 

Thanks,

Rashmi

2 REPLIES 2

Mark Roethof
Tera Patron

Hi there,

 

You could create a Flow Variable which contains for example system property instance_name, or you could script this on the Input of the description. Have you tried this? Or what is the issue you are running into?

Sohithanjan G
Kilo Sage

Hi @Rashmi N , 

 

You can store the instance name in system properties & utilise it in flow designer. Create those properties in all instances & value of property would be instance name.  

Set flow variable like below:

 

SohithanjanG_2-1709552872236.png

 

 

var instanceName = gs.getProperty('instance_name');
gs.info(instanceName);
gs.print(instanceName);
gs.log(instanceName);

  🙂