This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to check the name of the column which is updated?

Hi,

I want to add a trigger on update process of Person table where I need to read the name of the column which got updated. I am able to check the date when the record was updated and the user who updated it but unable to check the column which was updated. How to check this column name?

Parents
  • Hi,

    This code snippet below shows the API you can use to find the changed attrs in the context of a change event (E.g. a process triggered from the change event or in the table script for the changed table.

    hth,

    Rob.

    For Each column As IEntityColumn In Entity.Columns.Where(Function(t) t.IsChanged = True)
    	
    	Debug.Print(column.Columnname)
    	
    Next

Reply
  • Hi,

    This code snippet below shows the API you can use to find the changed attrs in the context of a change event (E.g. a process triggered from the change event or in the table script for the changed table.

    hth,

    Rob.

    For Each column As IEntityColumn In Entity.Columns.Where(Function(t) t.IsChanged = True)
    	
    	Debug.Print(column.Columnname)
    	
    Next

Children