Scenario:
Contact id 2, is_deleted is set to 1. Permissions not an issue since running as admin and no acl's present.
Results:
api3 explorer: Ask for return value "contact is in trash" which translates to
'return' => ['is_deleted']
, so in fullcivicrm_api3('contact', 'get', ['id' => 2, 'return' => ['is_deleted']]);
. This returns 0 results in api3 explorer (which is wrong).command line with cv: also no results
command line with cv but change is_deleted to contact_is_deleted:
civicrm_api3('contact', 'get', ['id' => 2, 'return' => ['contact_is_deleted']]);
. This does return results.Seeing same on 5.35 and master. I don't remember having this issue before but maybe I never put it in the
return
clause. It does work as a "where" clause on the command line, e.g.civicrm_api3('contact', 'get', ['id' => 2, 'is_deleted' => 1]);
, but not in api3 explorer.