how to add a variable set to multiple catalog items using a script ?

shabbir5
Tera Guru

Hi All,

i have a variable set called "dealer number vs" and inside that we have a variable "Dealer Number"

and i want to add this variable set to 500+ catalog items , how to perform this.

definately i need to run a fix script , can you please suggest the script that needs to be run?

@Ankur Bawiskar 

Thank you,

Shabbir

1 ACCEPTED SOLUTION

palanikumar
Mega Sage

Hi,

Instead of writing script, I suggest you to follow this approach

  1. Open Variable Set
  2. Goto "Included In" tab
  3. Click Edit Button
  4. Select the catalog in the slush bucket. You can add filter if you want to move based on a pattern
  5. Click Save button 
Thank you,
Palani

View solution in original post

3 REPLIES 3

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Basically you could just add the m2m record scripted, for all those catalog items.

What the actual issue you are running into? Did you try this for example, something failed?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

palanikumar
Mega Sage

Hi,

Instead of writing script, I suggest you to follow this approach

  1. Open Variable Set
  2. Goto "Included In" tab
  3. Click Edit Button
  4. Select the catalog in the slush bucket. You can add filter if you want to move based on a pattern
  5. Click Save button 
Thank you,
Palani

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

There is no need of script.

You can follow the approach mentioned by palanikumar

Regards
Ankur

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