11-29-2021 07:48 AM
Hello everyone,
I am integrating Finesse with ZenDesk to create tickets automatically every time an agent receives a call.
At this point I have managed to send the request to ZenDesk for every call through a WorkFlow with the call details needed to create the ticket in the body, however the agents have to enter a username and password for the first call after they login, they don't have to do that for the rest of the calls, until they logout and log back in.
I am trying to send the credentials automatically through Gadget ExternalRestApiSampleGadget so agents don't have to login within Finesse. I have been asked to include the username and password in the header of a GET request to accomplish this. I am using the following document as reference to modify the Gadget's code: https://github.com/CiscoDevNet/finesse-sample-code/tree/master/ExternalRestApiSampleGadget
Step 4 indicates the following: 4. If the external REST API requires an authorization header, uncomment the line of code that adds the authorization to the options object. If the authorization type is Basic Auth, then you can skip to the next step.
I did uncomment the line of code that add the authorization to the options object, however it is not clear for me where to edit/add the authorization field in the options object.
Screenshots of the Workflow configuration and Gadget are attached along with the template of the Gadget.
Thanks in advance for your help on this!
Kenny
12-02-2021 03:56 AM
ExternalRestApiSampleGadget will not work with Finesse Workflows. If you would like to use it, you have to code all actions inside the gadget. You can use this sample as a template.
There is another option. Instead of direct execution of workflow HTTP POST requests, Finesse can publish an event inside a gadget container. So, you can write a special proxy gadget that adds the authorization headers to the requests specified by workflow configuration. This is flexible and elegant solution but more advanced.
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