push_pin
lock
Retrieve a soft-deleted contact or person using WebApi
I'm porting an integration from an on-premises SuperOffice to SuperOffice Online, which requires me to switch from using the SuperOffice NetServer API to the SuperOffice WebApi. With the NetServer API, we consistently received data for contacts and persons, for example, using Person.GetPersonFromIdxPersonId(xx), even if the person was soft-deleted. All that I needed to do was to check the Deleted flag or Deleted date properties. However, after transitioning to the SuperOffice WebApi, I receive NULL when requesting a contact or person that is soft-deleted, using methods like PersonAgent.GetPersonEntityAsync(xx) or PersonAgent.GetPersonAsync(xx). How can I retrieve data from a soft-deleted contact or person using the SuperOffice WebApi library? Is this possible?
Letzte Antworten
Thank you, Tony. I now get to fetch data from the Recycle providers. So far so good, but the problem now is that I need information found in one of the udef fields on the soft-deleted rows. I have tried to specify personUdef/ or personUdef/string05 in the columns, like this: var columnsList = new []{ "personId", "personUdef/string05", "personUdef/MyProgId" }; var restrictionsList = new [] { new ArchiveRestrictionInfo() { InterOperator = InterRestrictionOperator.And, IsActive = true, Name = "personId", Operator = "equals", Values = [personId.ToString()] } }; var testData = await archiveAgent.GetArchiveListByColumnsAsync("recycleperson", columnsList, null, restrictionsList, ["forAllUsers"], 0, 10); Is it possible to get udef fields from a soft-deleted person?