Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Business rule not working to prevent serial number in a request form

NayeemSk
Tera Contributor

I create a business rule, which needs to prevent a serial number in a request that already exists in a table. Business Rule is not working. Attached the screenshot.

2 REPLIES 2

GlideFather
Tera Patron

Hi @NayeemSk,

 

I haven't analysed the code but I can see that on the line 7 there is comma (",") instead of dot (".") 

 

GlideFather_0-1764782139477.png

 

Just a tip: when you want a code review, please share the actual code, not a screenshot, it's easier for reviewers ;))

 

Let me know if that helped :))

_____
This reply is 100 % GlideFather and 0 % AI

Sarthak Kashyap
Mega Sage

Hi @NayeemSk ,

 

At 7 line, use .(dot)

if(invGr.next()){

 // your code

}

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak