Add/remove catalog variable value to sys_tag column in incident table record via Flow designer .

Ritika22
Tera Contributor

Hi All,

I have attached a catalog which have 3 variables - one refers to incident table, choice field action decides whether to add or remove tag and 3rd variable contains the value which to be added or removed from the incident record. When request submitted , I want to attach a flow which will trigger and perform these action . Which function should I use in Flow designer to get variable value of Tag from catalog item and to add/remove that value on Tags Column of the particular record of the incident which is selected on Incident variable of catalog item ?

 

Thank You

 

DipikaD_0-1751142044074.pngDipikaD_1-1751142116977.pngDipikaD_2-1751142209957.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Ritika22 

You can use "Get Catalog Variable" Flow action

Then check if the variable value is add/remove

1) if it's add then use "Create Record" flow action this table to create record for tag

2) if it's remove then use "Delete Record" flow action to delete tag from incident

check this link on which all tables are involved

2 main tables are label(create tag here) and then label_entry(links tag with table record)

Automate a tag from a record producer to incident 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

17 REPLIES 17

Ankur Bawiskar
Tera Patron
Tera Patron

@Ritika22 

You can use "Get Catalog Variable" Flow action

Then check if the variable value is add/remove

1) if it's add then use "Create Record" flow action this table to create record for tag

2) if it's remove then use "Delete Record" flow action to delete tag from incident

check this link on which all tables are involved

2 main tables are label(create tag here) and then label_entry(links tag with table record)

Automate a tag from a record producer to incident 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ritika22 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar ,

Thanks for responding. I followed the above method the Tag is getting created and the entire flow also getting completed but unable create label entry record to link the table record to tag . Flow is taking all the correct values i:e sys id, title, label for creating label_entry but label entry record is not getting created .

@Ritika22 

any error it's throwing? share screenshots.

Are you running Flow as "System User"?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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