I’m pretty new to Shotgun. Forgive me if this has been answered.
We have a use case where it’s possible that an entity’s field would get deleted through python script, and then created again. As it stands, this throws an error:
# Error: line 1: Fault: file C:\CC\Tools\bxExternal\devs\autodesk\shotgun\python2x\shotgun_api3\shotgun.py line 3464: API schema_field_create() failed, there is a retired field with the same field_name: sg_test_field. Delete the retired field forever from the Trash Page in Shotgun and try again. #
To get around that, I would expect to be able to query whether a field has been ‘retired’ and then ‘revive’ it instead of creating it. I can’t find any documentation on how this would work through the API.