Forum Discussion
jwagner
7 months agoNew Contributor III
If you have a specified list of accounts you would like to be skipped in the Composite rule, you could use 'Globals.Bypass = True' in your rule, pseudocode below.
Dim accountsToSkip As List(Of String) = {<accounts to skip here>}
Dim sAccount As String = args.Value
If accountsToSkip.Contains(sAccount) Then
Globals.Bypass = True
Else
<Composite Rule logic>
End If
- Beeswing777 months agoNew Contributor III
That sounds like what I want, but I can't seem to get it to work for me. This is what I have now:
If args.GetTarget("A#") = "BS11200"
Globals.Bypass = True
Else
Return "None"
End IfIt just returns 0's in UD2 for account BS11200
- jwagner7 months agoNew Contributor III
Couldn't you just shift the list logic into the Complex Expression?
- Beeswing777 months agoNew Contributor III
Yes, in theory, but there are a lot of line in the List mapping. I'd also have to combine them with the source accounts, and there are many of those and they don't run in nice neat ranges. It wouldn't really be sustainable.