CRMScript Trigger for delete?

lock
push_pin
done
Answered
4

Hi,

Looking for a way to catch if a contact is deleted using CRMscript and triggers.

Currently running SuperOffice 8.3 Build Release83_C-2018.06.21-01

Is this functionality scheduled for a later release maybe?

In for examle the ContactAgent there are BeforeDeleteContactEntity and AfterDeleteContactEntity.

Could be usefull if you like in my case want to send a signal to another system that a customer has been deleted.

 

Best regards

Patrik

4 Sep 2018 | 12:00 AM

All Replies (4)

Hello,

The "After Saving %" trigger isn't called when you deleted a company/contact, but since you are running 8.3 you could use the new deletedDate field to determine if a company or person was deleted, and send a signal to an external system.

You do have to take into account that the company or person could be restored from the recycle bin again.

 

 

4 Sep 2018 | 12:00 AM

Thanks.

How do I catch that in CRMScript?

What comes to my mind is that it would be nice with (besides Before Deletexxxx and AfterDeletexxxxx triggers)
a AfterRestorexxxx trigger as well.

Best regards

Patrik

4 Sep 2018 | 12:00 AM

Hi gentlemen,

Adding more trigger events to hook into is on the radar.

Best regards.

5 Sep 2018 | 12:00 AM

Thanks,

Sounds great :)

 

Best regards

Patrik

5 Sep 2018 | 12:00 AM

Add reply