Report Call scenario limitation by extension numbers

bar-oz

Titanium Partner
Advanced Certified
Joined
May 5, 2019
Messages
21
Reaction score
4
Hi,
I want to limit the Report Call scenario to execute only if [Agent] is listed in chosen agents list.
I've created a parameter "AgentsList" that contains the desired extensions in string, separated by comma, like: "101,102,103,104":
1762948957487.png

Now I want to add a condition to the "SkipIf" that will check if [Agent] is exist in [AgentsList].
Something like
XML:
SkipIf="[AgentsList] NOT CONTAINS [Agent]"

Does anyone have an idea how to achieve this condition?

Thanks
 
You won't be able to do it that way. You will need to do it hardcoded in the template, with many many IIf.
 
I think you can use the Method Invocation for this, and use the C# String.Contains method, as follows:
SkipIf="[IIf([[AgentsList].Contains([Agent])],False,True)]"

Please note that I have not tried the expression, so feel free to check it and let us know if it works.
 
I think you can use the Method Invocation for this, and use the C# String.Contains method, as follows:
SkipIf="[IIf([[AgentsList].Contains([Agent])],False,True)]"

Please note that I have not tried the expression, so feel free to check it and let us know if it works.
Works like a charm!
Many thanks and admiration for the successful solution.
 

Forum statistics

Threads
111,986
Messages
590,148
Members
164,917
Latest member
Oliver Hastedt