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

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