Is my business rule condition correct?

DanielG
Tera Contributor

Hello,

 

I created a business rule that runs against the Reassignment History (u_reassignment_history) table.

The condition that I need to trigger against is when the new assignment value is "App Eng"

 

Here is what I added to the advance condition field: 

current.u_new_value == 'App Eng'

 

App Eng is the name of the assignment group. Please see my image to review my business rule:

NOTE - I have a larger script but for now I just have the log statement just to see if the business rule gets triggered by my condition. So far it isn't working.

Screenshot 2023-11-29 at 9.07.59 AM.png

 

I want the business rule to be triggered anytime I change from one assignment group to "App Eng"

Is my condition formatted correctly?

1 ACCEPTED SOLUTION

Community Alums
Not applicable

You can dot walk from there - go to the bottom of the drop down - show related fields

JoroKlifov1_0-1701282018309.png

 

View solution in original post

15 REPLIES 15

Community Alums
Not applicable

if this is custom app (from what i can see it is NOT) gs.info() wont work.
So, your BR - set it onBefore, move the condition to the first tab and remove it from where it is now. From the condition builder set your condition. This way you will see if this field is there, is it reference or plain text and so forth. You just dont meet the condition you have- either coz of when to run is wrong , bad condition, typo somewhere (to remove this - change the condition to true - so you can see the message in the log always)

Hello @Community Alums  I won't be able to use condition builder because the condition I eventually want to use will need to dot walk. I'm going to add on the following 

 

"&& current.task.active == true"

Community Alums
Not applicable

You can dot walk from there - go to the bottom of the drop down - show related fields

JoroKlifov1_0-1701282018309.png

 

Wow, how did I miss that. Thank you so much @Community Alums 

 

And thank you too @Mark Roethof I imagine you were going to lead me to this answer as well.

 

I really appreciate the quick replies!

Community Alums
Not applicable

Welcome 🙂