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.

Catalog item check IP ranges

MonicaW
Tera Guru

I need to write a catalog item flow that will check for three separate IP ranges on a single variable.  If the IP that is entered is outside those ranges, then I need a group approval to be created.

Any ideas would be appreciated.

Thank you,

Monica W.

1 ACCEPTED SOLUTION

Hi @MonicaW ,

For basic understanding i will add the sreen grab of my PDI flow and DT.
if still facing issue you can have a look at the Document i have attached named 'Catalog item check IP ranges' it has a detailed overview of what i have done in my PDI like Flow designDecision Table, RITM raised for IP address within the range(those 3 IP Adress) and Out of range.

 

RavindraHV_0-1763111211364.png

RavindraHV_1-1763111227365.png

 

Please Mark 👍Helpful if you find my response worthy based on the impact.
Thank You,
Ravindra H V

View solution in original post

12 REPLIES 12

Hi Ravindra:

I'm attaching a screen shot of what I see.  I thought the the input would be a reference to the sc_cat_item table but maybe not?

Hi @MonicaW ,

For basic understanding i will add the sreen grab of my PDI flow and DT.
if still facing issue you can have a look at the Document i have attached named 'Catalog item check IP ranges' it has a detailed overview of what i have done in my PDI like Flow designDecision Table, RITM raised for IP address within the range(those 3 IP Adress) and Out of range.

 

RavindraHV_0-1763111211364.png

RavindraHV_1-1763111227365.png

 

Please Mark 👍Helpful if you find my response worthy based on the impact.
Thank You,
Ravindra H V

Thank you, Ravindra - that helps a lot.  Can the Decision Table conditions be a range of IP addresses like the attachment shows or will I have to put in every possible IP address in the conditions?

I just saw the "between" option...I will try that and provide the range on each line!

Hay @MonicaW ,

There is an option, we can use is One of operator. PFA,
eg - 10.8.255.255, 182.158.1.255, 152.15.255.255 i have added range of IP's as csv in the value section.

RavindraHV_0-1763268499104.pngRavindraHV_1-1763268508536.png


If this resolves your issue, please mark it as the accepted solution so it can help others with similar problems.
Thank You,
Ravindra H V