08-08-2017 02:44 AM
Hey all
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
Best regards
Thomas
08-08-2017 12:10 PM
Hi Thomas,
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
Thanx,
Denise
08-09-2017 01:44 AM
Hey Denise.
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.
Thx
Thomas
08-09-2017 09:54 AM
Hi Thomas,
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.
Thanx,
Denise
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