Why is my BR is not working even after proper trigger condition and Javascript, How to resolve?

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 ACCEPTED SOLUTION

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

View solution in original post

3 REPLIES 3

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

It worked thank you @Danish Bhairag2  , this thing was giving me a hard time for a week. lot of success to you.

And hoping for your expertise again in future😀

Happy to help @MG_Azam ðŸ˜€

Happy Learning 😀

 

Thanks,

Danish