Hi Everyone,
I am trying to figure out whether I can get information out of SuperOffice API when for instance users merge a Person into another Person.
Ideally, I would listen for merge events in the webhook, but that doesn't seem to be an option.
Does anyone have any knowledge of this or alternative ideas as to how I might achieve this information?
Best Regards,
Henrik
All Replies (3)
Hi Henrik,
There is no event for it, but you can query the mergemovelog table using the dynamic query provider based on a person.update or person.deleted webhook.
Hi Henrik,
No, you can query any table (with the exception of a few internal tables that have been blocked) using the dynamic archive provider, example:
GET ./api/v1/Archive/dynamic?$select=MergeMoveLog.sourceRecord,MergeMoveLog.destinationRecord&$filter=MergeMoveLog.tableNumber eq 6
Hi David,
This definitely looks very interesting!
I am having a bit of trouble making sense of what I am seeing in the output though.
The id below is one that I created this morning. It has not been merged or anything:
In other sample cases I have looked up both sourceRecord and destinationRecord in our corresponding SuperOffice environment, and have been able to find both records still, when I was expecting the source record to be deleted?
Best Regards,
Henrik