Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Update experimental.md
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenj committed Oct 8, 2019
1 parent 002e863 commit d90308e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/_docs/reference/skills/experimental.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,19 @@ This skill demonstrates the following scenarios:
To test this skill you will need to follow the ServiceNow configuration steps shown below:

1. Create a ServiceNow instance in the [ServiceNow Developer Site](https://developer.servicenow.com/app.do#!/instance).
1. Provide this value in your `appsettings.json` file.
1. Update this configuration entry in your `appsettings.json` file with your Service Now instance URL:
`"serviceNowUrl": "{YOUR_SERVICENOW_INSTANCE_URL}`
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
- In System Web Services/Scripted REST APIs, click New to create an API
- In API's Resources, click New to add a resource
- In the resource, select GET for HTTP method and input `(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) { return gs.getUserID(); })(request, response);` in Script
- Update the serviceNowGetUserId of appsetting.json: `"serviceNowGetUserId": "YOUR_API_NAMESPACE/YOUR_API_ID"`
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
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.
- Redirect URL is https://token.botframework.com/.auth/web/redirect
1. Add an OAuth Connection in the Settings of Web App Bot named 'ServiceNow' with Service Provider 'Generic Oauth 2'
- Authorization URL as https://instance.service-now.com/oauth_auth.do
- Token URL, Refresh URL as https://instance.service-now.com/oauth_token.do
1. Add an OAuth Connection in the Settings pane of your Web App Bot named 'ServiceNow' using Service Provider 'Generic Oauth 2'
- 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
- No Scopes are needed
- Click Test Connection to verify
- Click Test Connection to verify the connection works as expected.

To test this skill with your Virtual Assistant one manual step is required over and above the usual skill connection steps.

Expand Down

0 comments on commit d90308e

Please sign in to comment.