Have do I get the refUrl agentId to use in the ucce API from Finesse.
If I want to make skill changes to an agent thru the ucce API i have to call "/unifiedconfig/config/agent/<RefUrlagentId>".
But if I get the user.getuserId() in finesse i get the agentId and not the refUrl AgentId.
Anyone tried this?
I know i can make search like this "/unifiedconfig/config/agent/?q=<user.getuserId()>, but this is a wildcard search, and can return more then one agent in the list (If i have 2 agents, 1 with user.getuserId() 3456 and 1 with aguser.getuserId() 345678 - the search will return both) - I only want the one specifik in searching for.
My user.getuserId() = 12345
Ill make the search /unifiedconfig/config/agent/?q=12345
Ill get 2 records back - 1 with the Id 12345 and 1 with the id 12345678 - Ill only need the 1 with the id 12345
From what I know about the CCEconfig apis, the URL is actually expecting the agent's id, which should be the user.getuserId().
So, it should just be /unifiedconfig/config/agent/12345
The user.getUserId() in finesse is returning the peripheral agent ID and not the refUrl agentID
The refurl Id is the Agent TargetID from the icm database where the user.getuserid() is the peripheral agent ID. 2 different Id's.
For making changes to an agent i ned to use the Agent TargetID to the refUrl.
so i can't use the user.getuserId() from finesse.
user.getuserId is the only ID that Finesse has, so if you are saying the refurl id is the agent targetId and is not the same, then unfortunately the Finesse desktop cannot supply that ID since it doesn't have that id.
I had tried using user.getuserId() on my CCE system and it worked, but maybe you have your system configured differently.