Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Unusual Flow Designer Challenges

RiteshSwarnakar
Giga Guru

Below are two questions I need some help with:

 

1) How to check if Domain is global in Flow Designer?

This is what I am using:

RiteshSwarnakar_0-1700843458533.png

I have also tried Condition: Domain is blank

I also tried Condition: Domain is global

 

Nothing is working

 

 

2)  How to access Flow Variables inside the Flow Inline script?

Note: The Trigger type is Scheduled

RiteshSwarnakar_1-1700843843208.png

 

 

 

I appreciate your time and suggestions.

 

Thanks,

Ritesh

 

1 ACCEPTED SOLUTION

Hi @Hemanth M1 ,

 

Thank you for your prompt response.

Your inputs were valuable. 

 

For 1st one instead of using script, I have created a flow variable to store domain value and then appended a string to it.

Ex: Set flow variable domain = Domain1 and then used if condition to check if it is global1

RiteshSwarnakar_0-1700977586934.png

RiteshSwarnakar_1-1700977619111.png

 

 

 

2nd one which you mentioned is correct.

View solution in original post

2 REPLIES 2

Hemanth M1
Giga Sage
Giga Sage

Hi @RiteshSwarnakar ,

 

1)If none of the condition worked,  use script in the look up and glide records check the domain ex: gr.sys_domain == 'global'

 

2)you can use this flow variable value as below:

var flow_variable_value = fd_data.flow_var.test.
 
 
Accept and hit Helpful if it helps.

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

Hi @Hemanth M1 ,

 

Thank you for your prompt response.

Your inputs were valuable. 

 

For 1st one instead of using script, I have created a flow variable to store domain value and then appended a string to it.

Ex: Set flow variable domain = Domain1 and then used if condition to check if it is global1

RiteshSwarnakar_0-1700977586934.png

RiteshSwarnakar_1-1700977619111.png

 

 

 

2nd one which you mentioned is correct.