Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Business Rules Action

Jamsta1912
Tera Guru

Hi all,

 

What's the best way to check the current action in a business rule? ie for a business rule that runs on insert or update, how can I test which action is actually happening for the current record?

 

I was think of something equivalent to if (action == "insert") as used in transform map scripts.

 

Thanks.

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

current.operation() == 'insert'


View solution in original post

4 REPLIES 4

Kalaiarasan Pus
Giga Sage

current.operation() == 'insert'


For anyone who also falls victim to the Wiki redirect dead-end, here's a place where this comes up in the latest [Kingston] documentation: Determine the operation that triggered the business rule


Thank you. I should have spotted that in that Wiki!