Author Topic: Fetch agent details from IRD using agent EmployeeID  (Read 248 times)

Offline genesyslearner

  • Newbie
  • *
  • Posts: 40
  • Karma: 0
Fetch agent details from IRD using agent EmployeeID
« on: February 27, 2019, 05:07:49 PM »
Hi All,

Is there a possible way to fetch agent skills using IRD?
I have employee ID of the agent and i would like to fetch the list of skills of that particular agent in IRD.


Thanks

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 6981
  • Karma: 56331
Re: Fetch agent details from IRD using agent EmployeeID
« Reply #1 on: February 27, 2019, 09:00:23 PM »
Code: [Select]


AgentDataCfg =AgentProfile[UData['RTargetAgentSelected']]


varName = Cat[KVListGetStringValue[AgentDataCfg,'firstname'],' ',KVListGetStringValue[AgentDataCfg,'lastname']]




[/size]Here is a sample on how to get Last Name and First Name, skills info should be there too, just adapt it to your needs.
[/size]Of course you need to check URS logs to fully understand what is returned
[/size]