Im trying to do what i thought would be a simple task but its turning out not to be so simple (or maybe it is but im making it not simple). I just want to add a new tag to all my items in my portal without removing their existing tags. I have attempted to use item.update but that removes existing tags. I have moved on to getting the existing list of tags from item.tags and then appending to that list but i cannot get the code to work (spoiler alert, i am not a python expert). I've tried inserting as a list as well as converting to a string to insert into the update function. nothing seems to work. Any help is appreciated.
this is latest iteration:
item = source.content.get("item_id")
tags = item.tags
tags.append('newtag')
liststring = ','.join(tags)
inputstring = "item_properties={'tags': '" + liststring + "'}"
item.update(inputstring) thanks