Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: eisefr on April 12, 2022, 09:29:32 AM
-
Hiiii..
I would like to save the agent-group - name into a variable.
My action script .. very simple:
[code]
Parameter = "BRS_CLS"
Aktion = "zero"
Dim ObjShell
Set ObjShell= CreateObject("WScript.Shell")
ObjShell.Run "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe c:\anwend\Skripte\Agentengruppen_ungleich_1.ps1 " & Parameter + " " + Aktion
[/code]
I would like to add a row like
[code]
Group = Agentgroupname
[/code]
I would like to pass this variable "Group" to a powershell skript.
Is this possible somehow ?
-
I'm assuming you are talking about CCPulse+ here.
Have you tried something like this?
[code]
Dim AgentGroupName = Threshold.CFGObjectID
[/code]
-
I get an error when I try this.
[quote]Error at
Line: 1
Position: 20
Error Message: Expected end of statement[/quote]
Maybe it's just something simple.
I am very new to this.
-
Post your whole code pls
Enviado de meu SM-N9600 usando o Tapatalk
-
Parameter = "KSC_Test"
Aktion = "zero"
Dim ObjShell
Set ObjShell= CreateObject("WScript.Shell")
[b][color=red]Dim AgentGroupName = Threshold.CFGObjectID[/color][/b]
ObjShell.Run "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe c:\anwend\Skripte\Agentengruppen_ungleich_1.ps1 " & [color=Blue]Parameter [/color]+ " " + Aktion
If row#5 would work, I could replace [color=blue]Parameter [/color]with AgentGroupName
-
I got it to work now.
This is how it works here:
[quote][color=red]Dim thresholdInfo
Parameter = CStr(Threshold.CFGObjectID)[/color]
Aktion = "Anmeldung"
Dim ObjShell
Set ObjShell= CreateObject("WScript.Shell")
ObjShell.Run "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe c:\anwend\Skripte\Agentengruppen.ps1 " & Parameter + " " + Aktion
[/quote]
Thank you all for your time and help.
-
Thanks for sharing the solution
Enviado de meu SM-N9600 usando o Tapatalk