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

abhisek
Tera Contributor

Hi Team,

I have a requirement. I have a catalog item which has a multi row variable set 'Impacted CI' having 2 single line text variables 'Name' and 'DNS Domain'. This catalog item is having flow designer.

 

Requirement is: 

ServiceNow will need to search through the list of servers in field "Impacted CI" and for each server, check the value in the column "DNS Domain".  For any CIs associated with the Domains listed below, create one single SCTASK for each Domain. Domain name should be inserted in SCTASK with Short Description "[%DOMAIN%] VM Snapshot Prechecks, Creation & Removal - CHGxxxxxxx"

 

Where there are multiple CIs with the same Domain, combine these into 1 single SCTASK for each Domain. (So there could be up to 5 SCTASKS created for each RITM, depending which CIs are selected by user).


Map the domain [%DOMAIN%], to the SCTASK as follows:

If Domain is one of the following then %DOMAIN% = "Gl IT"
   ams.et.ff.net
   aac.et.bb.net
   ent.bw.net
  ior-mgmt.bh.net

 

If Domain is one of the following then %DOMAIN% = "CO UT"
   pn.ba.tr.net
   inl.ac.net
   pcs.loc

 

If Domain is one of these then %DOMAIN% = "ZO UT"
  ca-et.bb.com
 on.ac.nt.wq.net

 

If Domain is one of the following then %DOMAIN% = "WAI UT"
  bail.loc
  ar.irnw.hh.nt.au
  mac.new.nb.et.au
  mcrs.com
  ub.irnew.bhpbilliton.net.au
 nd.irew.bh.net.au
 b24.irew.zz.net.au
 ort.loc
 io-opet.loc
 ndi.inw.ll.net.au
 ps.sves.loc

 

If Domain is the following then %DOMAIN% = "POTK UT"
  pkt-ot.fe.com

 

This kind of requirement is new for me. Could you please help me out to implement this ASAP, it is urgent and have to deliver it ASAP.

 

Thanks in advance.

Regards,

Abhisek Chattaraj.

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@abhisek  

it's better to use custom flow action for this to create catalog tasks

Ideally you could iterate the MRVS using For Each flow logic but since you want to combine hence flow action

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader