Working on unlock resource, updated table resource to use code instead
of id.