09-26-2019 02:36 AM
Is there any query or process to list all UCCE agents that are built in ICM. I need to know the Enterprise Name,Peripheral Name and Agent ID (Peripheral Number)
09-26-2019 03:45 AM
You can gather that information from one table
SELECT EnterpriseName, PeripheralNumber, PeripheralName FROM Agent
If you want to include their first and last name from the Person table
SELECT P.FirstName, P.LastName, A.EnterpriseName, A.PeripheralNumber, A.PeripheralName FROM Agent A, Person P WHERE A.PersonID = P.PersonID
If you have multiple CUCM PGs, you could also add that information in there
09-26-2019 03:49 AM
09-26-2019 03:56 AM
SELECT P.FirstName, P.LastName, A.EnterpriseName, A.PeripheralNumber, A.PeripheralID, PH.EnterpriseName, A.PeripheralName FROM Agent A, Person P, Peripheral PH WHERE A.PersonID = P.PersonID AND A.PeripheralID = PH.PeripheralID ORDER BY A.EnterpriseName
You can change the ORDER BY clause to order this by whatever column you want
09-26-2019 04:15 AM
09-26-2019 04:37 AM - edited 09-26-2019 05:20 AM
SELECT MasterScriptName = MS.EnterpriseName, SGName = SG.EnterpriseName FROM Ref_Script_Cross_Reference SCR LEFT JOIN Ref_Script S ON S.ScriptID = SCR.ScriptID LEFT JOIN Ref_Master_Script MS ON MS.MasterScriptID = S.MasterScriptID LEFT JOIN Skill_Group SG ON SG.SkillTargetID = SCR.ForeignKey WHERE SCR.TargetType = '2' GROUP BY MS.EnterpriseName, SG.EnterpriseName ORDER BY MS.EnterpriseName, SG.EnterpriseName
Please rate helpful posts
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide