Question

How to Identify the Source of Entity Changes in OnSaving (UI or Business Process)

We are using OnSaving(object sender, EntityBeforeEventArgs e).
Is there a way to filter the source of the entity change — for example, whether a business process was modified — and get the business process ID?
Or is there a way to filter which changes were made from the UI and which were made by business processes?

Like 0

Like

1 comments

Hi Evgen samoilov,

Inside the OnSaving event, you cannot determine the source of the change.

As a workaround, to understand where your entity was changed from, you can add a column to this entity that will contain information about the save process and read it inside the OnSaving event.

Show all comments