08-28-2017 07:15 PM
I am trying to build a custom gadget to put Agent back into Ready after Agents applies Wrap-Up Reason to the call.
It will be similar to CAD functionality.
1. Once call ends, "Apply" button will activate
2. Finesse will wait in Wrapping/After Call Work until a "Wrap Up Reason" is selected and applied
3. Agent will select "Wrap Up Reason" from Scrolling Text Box
4. Agent will press "Apply"
5. Wrap Up Reason is updated for the call
6. Agent is put back into Ready state
I'm putting together the parts of the code that would be needed.
Looks like I'll need to use:
finesse.restservices.Dialog.ParticipantStates - check if in Wrap Up and activate Apply button
wrapUpReasons.getCollection() - or hardcode into gadget or codes.xml file on webserver etc
updateWrapUpReason(wrapUpReason, handlers) - to apply wrap up reason to call data
user.setState - back to Ready
Automatic Wrap will be enabled & WrapUp Timeout will be disabled
Will I be able to get a list of "Wrap Up Reasons" or do I need to hard code into the custom gadget?
Am I on the right track?
Solved! Go to Solution.
08-29-2017 10:41 PM
To get the current wrap up reason for the call, you need to use the getMediaProperties() method from the dialog object. The getMediaProperties will return a Map of call variables where "wrapUpReason" is one of them.
Thanx,
Denise
08-28-2017 09:25 PM
Hi Raymon,
Will I be able to get a list of "Wrap Up Reasons" or do I need to hard code into the custom gadget?
Yes, you should be able to gret a list of wrap of reasons. Take a look at the finesse.restservices.WrapUpReasons class. There is an example on how to use the getWrapUpReasons(handlers) method from the User class.
Am I on the right track?
Looks like it! Be aware that Finesse allows wrap up reasons to be set throughout the call, even when the agent isn't in wrap up state. This will be available via the default call control gadget that cannot be disabled.
Thanx,
Denise
08-29-2017 09:30 PM
How can I see the current WrapUpReason for the call? Want to make sure updateWrapUpReason is working... currentWrap = finesse.restservices.WrapUpReason(); alert(currentWrap);
08-29-2017 10:41 PM
To get the current wrap up reason for the call, you need to use the getMediaProperties() method from the dialog object. The getMediaProperties will return a Map of call variables where "wrapUpReason" is one of them.
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