I want to put both a,b users in person field

There is a field created by selecting [person] from [multi-entity]. The field name is Field code: sg_target_people.
With user a in sg_target_people, I want to add user b. I used sg.update, user a disappears and only user b remains.
I want to put both a,b users in sg_target_people, what are some ways?

Possibly you need to take the current field value and append user b.
It sounds like you are replacing the current value with user b, not adding it.

1 Like

The best way to approach this is by using the multi_entity_update_modes :

https://developer.shotgridsoftware.com/python-api/reference.html#shotgun_api3.shotgun.Shotgun.update

Append your update call with something like this:

multi_entity_update_modes={“sg_target_people”: “add”}

2 Likes