Webhook Updates for SO 9.2 R03
Note: The information below is copied from the "What's New In SuperOffice"-pdf, release SO 9.2 R03 2020-12-10 and is presented "as is".
Intent: The intent of this post is only to work as an addendum to the Webhook article written by Tony, so relevant information regarding Webhooks easier can be found in the same centralized place.
Link: https://community.superoffice.com/en/content/content/netserver-sdk/netserver-8.x/superoffice-webhooks/
API CHANGES
WebHooks – Include contact_id and person_id in activity.deleted (9.2 R03)
With the introduction of soft-deletes, the contact and person deleted webhooks were "broken". These events will fire when the entitiy has been permanently removed from SuperOffice.
* contact.deleted
* person.deleted
Because API consumers may still want to be notified and manage softdeletes, the following two new webhooks have been introduced:
* contact.softdeleted
* person.softdeleted
Added "Values" property to webhook for deleted events, to hold ID values from original record (if available). Deleted activities will now retain contact and person ID values. This will allow you to see which company or person the deleted activity was connected to.
For more info, see announcement in the forums and webhook reference: https://community.superoffice.com/documentation/sdk/SO.NetServer.Web.Services/html/webhooks_ref.htm
WebHooks – Project member triggers/web hooks (9.2 R03)
Once you delete a project member, the “Number of project members” field is automatically updated and does not require scripting.
Deleted activities will now retain contact, person, project and sale ID values. This will allow you to see which company, person, project or sale the deleted activity was connected to.