You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 30, 2022. It is now read-only.
1. Create a [scripted REST API](https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/integrate/custom_web_services/task/t_CreateAScriptedRESTService.html) to get current user's sys_id and please raise an issue if simpler way is found
115
115
- In System Web Services/Scripted REST APIs, click New to create an API
116
116
- In API's Resources, click New to add a resource
117
117
- In the resource, select GET for HTTP method and input `(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) { return gs.getUserID(); })(request, response);` in Script
118
118
- Update the serviceNowGetUserId of appsetting.json: `"serviceNowGetUserId": "YOUR_API_NAMESPACE/YOUR_API_ID"`
119
-
1.Set up endpoint by [this document](https://docs.servicenow.com/bundle/london-platform-administration/page/administer/security/task/t_CreateEndpointforExternalClients.html#t_CreateEndpointforExternalClients) for Client id and Client secret to be used in the following OAuth Connection
119
+
1.Register an Application and OAuth configuration by following [these instructions](https://docs.servicenow.com/bundle/london-platform-administration/page/administer/security/task/t_CreateEndpointforExternalClients.html#t_CreateEndpointforExternalClients). Keep the generated Client ID and Client Secret to be used in the following OAuth Connection step.
120
120
- Redirect URL is https://token.botframework.com/.auth/web/redirect
121
-
1. Add an OAuth Connection in the Settings of Web App Bot named 'ServiceNow' with Service Provider 'Generic Oauth 2'
122
-
- Authorization URL as https://instance.service-now.com/oauth_auth.do
123
-
- Token URL, Refresh URL as https://instance.service-now.com/oauth_token.do
121
+
1. Add an OAuth Connection in the Settings pane of your Web App Bot named 'ServiceNow' using Service Provider 'Generic Oauth 2'
122
+
- Set Authorization URL, Token URL, Refresh URL to the followiong, replacing YOUR_INSTANCE with your instance name: https://YOUR_INSTANCE.service-now.com/oauth_token.do
124
123
- No Scopes are needed
125
-
- Click Test Connection to verify
124
+
- Click Test Connection to verify the connection works as expected.
126
125
127
126
To test this skill with your Virtual Assistant one manual step is required over and above the usual skill connection steps.
0 commit comments