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.

10 REPLIES 10

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 :))

_____
No AI was used in the writing of this post. Pure #GlideFather only

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

@Sarthak Kashyap thanks for repeating what was already said before :)))

_____
No AI was used in the writing of this post. Pure #GlideFather only

@GlideFather , thanks for pointing out, the image shared by @NayeemSk has only one issue, so I post my solution.