Why is my BR not working and how to identify the issue?

MG_Azam
Tera Contributor

Hi Community,

Need your expertise on another issue

I'm trying to create a Leave Request system, but after adding proper trigger conditions and JavaScript I'm unable to find the result. so my question is how to identify the right issue? and what should be the process.

Please find the images for reference. I have cross-checked variable names, and all of them are correct. 

 

Screenshot 2023-10-28 145755.pngScreenshot 2023-10-28 145857.pngScreenshot 2023-10-28 145915.pngScreenshot 2023-10-28 145929.png 

1 REPLY 1

Danish Bhairag2
Tera Sage
Tera Sage

Hi @MG_Azam ,

 

Can u put some logs n check whether your BR is getting triggered or not?

 

For eg u can start by placing log at line number 2

gs.info("BR called").

2nd log u can put under if condition where u checking leave assignment is Y.

Similarly u can place other logs at different places to check whether the code reached/executed till der or not.

 

Thanks,

Danish