Now I was able to send in the request via POST, and it returned http code 202. Where in the Interaction server can I look for the logs whether this has been processed or not? Thanks again.
I was also reading the doc (the explanation of code 202 is similar to the description below).
/icws/{sessionId}/system/handler-notification
Sends a notification to one or more custom handlers that are watching for the objectId and eventId pair on their initiator.
Due to the nature of custom handlers, the server does not provide any guarantee that the notification is handled or results in any side-effects.
------------------------------
Minjie Xu
Ascension Health – IS, Inc.
------------------------------
Original Message:
Sent: 05-02-2019 13:11
From: Aaron Lael
Subject: How to trigger an handler
I wouldn't call this horse dead just yet.
Sending a handler notification requires surprisingly little permissions, and if your account has access to create and publish handlers for your environment I'd wager you've met the criteria. I'd suspect, from that error, that your request is malformed. I would validate that your connection request is returning a cookie, csrf token and session ID and that you are using all three in your subsequent requests.
------------------------------
Aaron Lael
State of Utah
Original Message:
Sent: 05-02-2019 11:38
From: Minjie Xu
Subject: How to trigger an handler
Not to beat the dead horse, so if I use the ICWS, I still need some sort of access to the IC server (some permissions), right? Right now I can only get two WS calls working, create connection (POST) and get connection features. The rest don't work for me, e.g., send notification (POST) and get languages (GET). The most common error I received is:
{
"errorId": "error.request.accessDenied.invalidSession",
"alternateHostList": [],
"errorCode": 7,
"message": "A session ID was provided with the request, but it is invalid or the session has already been closed."
}
------------------------------
Minjie Xu
Ascension
Original Message:
Sent: 05-01-2019 16:05
From: Aaron Lael
Subject: How to trigger an handler
If you don't have access to the IC server, you can also use the ICWS api to trigger a handler.
This is the ICWS documentation for communicating with handlers. You still need to have a handler initiated by a custom notification, though, so the first part of my previous post still applies.
------------------------------
Aaron Lael
State of Utah
Original Message:
Sent: 05-01-2019 16:01
From: Minjie Xu
Subject: How to trigger an handler
Thank you, Aaron.
It seems I need to get the IC server installed locally on my laptop. Right now I only have Interaction Designer.
------------------------------
Minjie Xu
Ascension
Original Message:
Sent: 05-01-2019 15:44
From: Aaron Lael
Subject: How to trigger an handler
If you set the initiator to "Custom Notification" (or if it is a subroutine, make a calling handler that is initiated by custom notification) and configure it with a object and event value, you can use the sendcustomnotification.exe tool in the server directory of your IC server to trigger it from the command line. Here's the help blurb from the command line:
D:\I3\IC\Server>SendCustomNotification.exe /?
Purpose: Send a Custom Notification to the Enterprise Interaction Center
Usage: SendCustomNotification [/N=<server>] ObjectID EventID ["Data", ...]
Where: ObjectID is a string identifying the Notification Object
EventID is a string identifying the Notification Event
Data is zero, one or more strings
<server> is the name of the EIC server to receive this notification
That should help if I'm understanding you correctly.
------------------------------
Aaron Lael
State of Utah
Original Message:
Sent: 05-01-2019 15:38
From: Minjie Xu
Subject: How to trigger an handler
Sorry for newbie question. I am trying to build a simple REST handler to call a RESTful web service. I got the example from here (https://github.com/GenesysPureConnect/RestThroughHandlers)
And I like to do a quick test that it can call the RESTful web service. From Interaction Designer I saw this "manage handler" option (for me it's greyed out), is this the only place that's possible to trigger the handler?
Thanks,
Minjie
#Handlers
------------------------------
Minjie Xu
Ascension
------------------------------