Welcome to the fracta.net forum!

Share your coding ideas or ask questions.

Question Adding/Removing Agents from Skill Change Script

  • Xtort81
  • Topic Author
  • Visitor
  • Visitor
12 years 2 weeks ago #90 by Xtort81
Sorry if this is not the right place to post about this...I saw some other threads about CMS.

I have some skill changes for multiple agents setup to run thru Windows Scheduler. The first few nights it worked. I then added an agent to the script and now the script apparently did not work. In the Windows scheduler screen it shows that the script ran..but people's skills did not change. I'm guessing I'm missing a step when adding the agent. I opened the script in Notepad and added the agent's extension to two lines.

'## Parameters.Add "14148;14448;14261;15271;15003;14108;15475;14237;1 4735;14272","SetSk_AgentID"


AgMngObj.OleAgentSetSkill 1, "14148;14448;14261;15271;15003;14108;15475;14237;1 4735;14272",1, 0,0, 0, 11,SetArr, ""

Is there another way I should be adding agents to the script? If you need more of the script let me know. Any help is greatly appreciated.

Please Log in or Create an account to join the conversation.

More
12 years 2 weeks ago #91 by roller
Without looking at the full script and if it was working before and it then stopped, could the reason be because agent ID 1 4735 has a space between the 1 and the 4?

You have 1 4735, try to chnage it to 14735!!!

Please Log in or Create an account to join the conversation.

  • Xtort81
  • Topic Author
  • Visitor
  • Visitor
12 years 2 weeks ago - 12 years 2 weeks ago #92 by Xtort81
Thanks for the quick reply roller. That must've been the way I pasted it. I thought that might've been the problem...but I checked the script this AM and there is no space. Here is the rest of the script.

Any help is greatly appreciated!

'LANGUAGE=ENU
'SERVERNAME=162.136.110.252
Public Sub Main()

'## cvs_cmd_begin
'## ID = 8000
'## Description = "Acd Administration, Change Agent Skills 14148 - AgentName"
'## Parameters.Add "Acd Administration","SubSystem"
'## Parameters.Add "Change Agent Skills 14148 - AgentName","FormName"
'## Parameters.Add "-1","DummyType"
'## Parameters.Add "-1","DummyAcd"
'## Parameters.Add "1","Action"
'## Parameters.Add "1","SetSk_Acd"
'## Parameters.Add "14148;14448;14261;15271;15003;14108;15475;14237;14735;14272","SetSk_AgentID"
'## Parameters.Add "1","SetSk_CallHandPref"
'## Parameters.Add "0","SetSk_DirectSkill"
'## Parameters.Add "0","SetSk_DirectFirst"
'## Parameters.Add "0","SetSk_ServiceObjective"
'## Parameters.Add "11","SetSk_NumofSkills"
'## Parameters.Add "14","BeginSetSkills"
'## Parameters.Add "998",""
'## Parameters.Add "1",""
'## Parameters.Add "0",""
'## Parameters.Add "140",""
'## Parameters.Add "3",""
'## Parameters.Add "0",""
'## Parameters.Add "152",""
'## Parameters.Add "3",""
'## Parameters.Add "0",""
'## Parameters.Add "301",""
'## Parameters.Add "3",""
'## Parameters.Add "0",""
'## Parameters.Add "401",""
'## Parameters.Add "3",""
'## Parameters.Add "0",""
'## Parameters.Add "141",""
'## Parameters.Add "3",""
'## Parameters.Add "0",""
'## Parameters.Add "304",""
'## Parameters.Add "3",""
'## Parameters.Add "0",""
'## Parameters.Add "404",""
'## Parameters.Add "3",""
'## Parameters.Add "0",""
'## Parameters.Add "429",""
'## Parameters.Add "3",""
'## Parameters.Add "0",""
'## Parameters.Add "48",""
'## Parameters.Add "3",""
'## Parameters.Add "0",""
'## Parameters.Add "320",""
'## Parameters.Add "3",""
'## Parameters.Add "0",""
'## Parameters.Add "","SetSk_Warning"



On Error Resume Next

set AgMngObj = cvsSrv.AgentMgmt
ReDim SetArr (11,3)
SetArr(1,1)= 998
SetArr(1,2)= 1
SetArr(1,3)= 0
SetArr(2,1)= 140
SetArr(2,2)= 3
SetArr(2,3)= 0
SetArr(3,1)= 152
SetArr(3,2)= 3
SetArr(3,3)= 0
SetArr(4,1)= 301
SetArr(4,2)= 3
SetArr(4,3)= 0
SetArr(5,1)= 401
SetArr(5,2)= 3
SetArr(5,3)= 0
SetArr(6,1)= 141
SetArr(6,2)= 3
SetArr(6,3)= 0
SetArr(7,1)= 304
SetArr(7,2)= 3
SetArr(7,3)= 0
SetArr(8,1)= 404
SetArr(8,2)= 3
SetArr(8,3)= 0
SetArr(9,1)= 429
SetArr(9,2)= 3
SetArr(9,3)= 0
SetArr(10,1)= 48
SetArr(10,2)= 3
SetArr(10,3)= 0
SetArr(11,1)= 320
SetArr(11,2)= 3
SetArr(11,3)= 0


AgMngObj.AcdStartUp -1, "", cvsSrv.ServerKey, -1
AgMngObj.OleAgentSetSkill 1, "14148;14448;14261;15271;15003;14108;15475;14237;14735;14272",1, 0,0, 0, 11,SetArr, ""


'## cvs_cmd_end

End Sub
Last edit: 12 years 2 weeks ago by Xtort81.

Please Log in or Create an account to join the conversation.

More
12 years 1 week ago #93 by roller
I can't see anything wrong with the code but couple of things to check.

Are you running the script on the same PC that you created it on? I know at my work when I try to run a script that was created on another PC it will not run. It's some sort of security feature.

There is an error log file that can give you a hint on why the script didn't run. There are actually few error log files but one of them will give you the details you are looking for. They are located in the same directory as the Avaya CMS program. Look for them and open each one, lookout for the time you task triggered the script and what error messages there are.

Check the above and let me know what happens.

Please Log in or Create an account to join the conversation.

Time to create page: 1.006 seconds
Powered by Kunena Forum