Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Java data type string error in scoped application

Katie A
Mega Guru

I am attempting to create a business rule in a scoped application. The business rule is not working due to a java data type error. I think it is caused by the "condition" line. I have used this same line in other (non-scoped) business rules. What could be the issue?

Condition:

gs.getUser().isMemberOf(current.assignment_group)==false

Exception (java.lang.RuntimeException: failed to coerce com.glide.script.fencing.ScopedGlideElement to desired type java.lang.String) occured while evaluating'Condition: gs.getUser().isMemberOf(current.assignment_group)==false; Filter Condition: x_myscp_infosec_sc_scan_request_stateIN2,6,5^commentsVALCHANGES^EQ' in business rule 'Scan Request State' on x_myscp_infosec_sc_infosec_scan_request:; skipping business rule

1 ACCEPTED SOLUTION

manikorada
ServiceNow Employee

Try


gs.getUser().isMemberOf(current.assignment_group.toString())==false


View solution in original post

1 REPLY 1

manikorada
ServiceNow Employee

Try


gs.getUser().isMemberOf(current.assignment_group.toString())==false