How to identify if current operation is insert, update or delete in Business Rules?

sanyalshubh
Tera Contributor
 
1 ACCEPTED SOLUTION

Ravi Gaurav
Giga Sage

Hi @sanyalshubh ,

 

We can use current.operation() in BR. Depending on current operation, it returns update, delete or insert value.

View solution in original post

3 REPLIES 3

Ravi Gaurav
Giga Sage

Hi @sanyalshubh ,

 

We can use current.operation() in BR. Depending on current operation, it returns update, delete or insert value.

Ankur Bawiskar
Tera Patron

@sanyalshubh 

As mentioned there is OOB function available in current object and it gives the operation

current.operation()

what's your business requirement here

If my response helped please mark it correct and close the thread so that it benefits future readers.

Sandeep Rajput
Tera Patron

@sanyalshubh operation() method on current object returns the operation type (insert/update/delete)

 

e.g. if(current.operation=='insert')