Author Topic: PSDK - Get LoginID  (Read 3334 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
PSDK - Get LoginID
« on: July 18, 2013, 04:44:03 AM »
Hi guys,
I'm developing a softphone based on .Net PSDK.
My question comes on how to do something like GAD does, input your Genesys user name and then on next screen show the PBX login ID.
I have looked for functions and found this way:

1. Using RequestReadObjects with CfgPerson and then CfgAgentLogin

However using ActiveX I did only:
[Code]
Desk.Retrieve()
DeskAgentId = Desk.Logins(1)
intLogin = DeskAgentId.Id
[/Code]

Anyone know an straight way like this or have to do the 2 steps?
Thanks

Offline Anahuac

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: PSDK - Get LoginID
« Reply #1 on: September 26, 2013, 04:20:05 PM »
Hi Cavagnaro,
With RequestReadObjects function, the data returned in XML format , and then you need to manipulate this for extract the needed info.
For me, the easiest way to obtain this info is consult directly to config database, with a simple query of 3 tables :

[list]
[li]cfg_person -> Username[/li]
[li]cfg_agent_login -> AgentLogin ID[/li]
[li]cfg_login_info -> Join of Persons and AgentLogins[/li]
[/list]

I know it's not recommended to consult the database directly, but it's a simple query.

Anyway, if you find another way to do this, please share with us  ;D

Best Regards