Sage CRM - Capture entity event update?

201 Views Asked by At

Can i alter/intercept the event when updating an entity?

For example, for when i update the company entity?

The idea is to delete somehting in the BBDD after the entity is updated

1

There are 1 best solutions below

8
Six Ticks Limited On BEST ANSWER

You can use Table Scripts to run functions when a record is inserted, after a record is inserted, when a record is updated, or when a record is deleted.

Table Scripts use JavaScript, but have access to the server-side functions (such as FindRecord, SQL statements, etc).

So, you can add a Table Script to the Entity to delete a record via a SQL statement when a record is updated.

It's difficult to give you an example without knowing exactly what you're trying to do though.

Six Ticks Support