adding to tags

398
1
Jump to solution
01-04-2022 08:41 AM
Labels (1)
by Anonymous User
Not applicable

I understand how to update the tags but that also removes the existing tags.

#update tags

for item in Items:
item.update(item_properties={'tags': 'tag, test'})

 

How would I go about adding tags to existing?  I a stumped.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

I figured it out.

#update tags

for item in Items:
thislist = item.tags
addtag = ("Newtag")
thislist.append(addtag)

item.update(item_properties={'tags': thislist})

 

This appends a tag to existing for item in items

View solution in original post

0 Kudos
1 Reply
by Anonymous User
Not applicable

I figured it out.

#update tags

for item in Items:
thislist = item.tags
addtag = ("Newtag")
thislist.append(addtag)

item.update(item_properties={'tags': thislist})

 

This appends a tag to existing for item in items

0 Kudos