We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---

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


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---

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