" /> [CCPulse+] Save the agent group name to a variable in Threshold.Action - Genesys CTI User Forum

Author Topic: [CCPulse+] Save the agent group name to a variable in Threshold.Action  (Read 2409 times)

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

Offline eisefr

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Advertisement
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 ?

« Last Edit: May 04, 2022, 09:50:44 AM by eisefr »

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Save the agent group name to a variable in Threshold.Action
« Reply #1 on: April 12, 2022, 02:04:04 PM »
I'm assuming you are talking about CCPulse+ here.


Have you tried something like this?
[code]
Dim AgentGroupName = Threshold.CFGObjectID
[/code]

Offline eisefr

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Save the agent group name to a variable in Threshold.Action
« Reply #2 on: May 04, 2022, 09:48:00 AM »
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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Post your whole code pls

Enviado de meu SM-N9600 usando o Tapatalk


Offline eisefr

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
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

Marked as best answer by eisefr on May 14, 2022, 01:28:40 AM

Offline eisefr

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Thanks for sharing the solution

Enviado de meu SM-N9600 usando o Tapatalk