--- title: 'Lab Setup: Salesforce and JIRA Connectors' excerpt: >- Get access to third-party systems and your Moveworks environment for your developer lab. deprecated: false hidden: false metadata: title: '' description: '' robots: index next: description: '' --- # Sign up for a developer trial of Salesforce and JIRA 1. Sign up for a free [Salesforce Developer Instance](https://developer.salesforce.com/signup). Ensure you use a personal email address, as sometimes company email addresses already have one allocated. **If you are challenged with a "birth city" and you didn't or don't remember filling it in, the default is San Francisco.** 1. Did not receive an account activation link? 1. Go to [Forgot Your Password](https://login.salesforce.com/secur/forgotpassword.jsp?locale=us) to reset your password 2. Sign up for a free [JIRA Trial Account](https://www.atlassian.com/try/cloud/signup?bundle=jira-software\&edition=free\&skipBundles=true). Ensure you use a personal email address, as sometimes company email addresses already have one allocated. This trial will be good for 30 days. **If you do not wish to sign up for a Salesforce Developer Instance, you can leverage one that Moveworks has provisioned with an existing connector.**
# Create a connected app in Salesforce **Skip this section if you have not signed up for your own Salesforce instance**\ We must set up a connected app in Salesforce to obtain API credentials. 1. Navigate to Setup ![](https://files.readme.io/9fc3995590b8d16194771d387eed066a8dcb441823899b1f70e1fc1a2367424a-image.png) 2. On the left bar, navigate to Apps \> Apps Manager, then choose the “New Connected App” button on the top right corner. ![](https://files.readme.io/40ace52249b771654ea9fc833356d73d81d675eb1168d64a5847d38356ca5a56-image.png) 3. In “Basic Information”, fill in the required fields. You can use the following in the screenshot ![](https://files.readme.io/4a3af3feae8867dbd76d68407dbcf61713cbe72f4f6f1f6d59538cfcbff6f79f-image.png) 4. Click “Enable OAuth Settings” and enter the following information. * Callback URL: [https://login.salesforce.com/](https://login.salesforce.com/) * Selected OAuth Scopes: * Manager user data via APIs * Perform requests at any time * Check “Enable Client Credentials” * Leave PKCE, Secret for web server flow and other boxes unchecked ![](https://files.readme.io/fbbd5584d603a92f1c7bf30e1e14a2277ce3779fb6d98a15ca640aa284d2d238-image.png) 5. Save your changes and you will see a message saying it could take up to 10 minutes for changes to take effect. Click “Continue”. 6. On the left sidebar, go back to Apps-\>App Manager 7. Find the connected App you just created, and on the right side click the dropdown and select “Manage” ![](https://files.readme.io/4c23eb8bb3c44b8f0ccf47f4dc82f2d299c3b0d2f816358a0aca8ab51bc41910-image.png) 8. Click the “Edit Policies” button ![](https://files.readme.io/2f41d7e25e640a23c7283f1ae34d81609d53e0eaeb6c287b0ed834e163fc0a4a-image.png) 9. If the settings below are not already, set OAuth Policies to the following ![](https://files.readme.io/814668a852a07fd9335613330a8d23cc1f8f56b6d2f8d6b16b20f1d1affc9321-image.png) 10. On the bottom under “Client Credentials Flow” choose “Run As” and you can select your own name as the user to authenticate as **and Click Save**. **You must click the magnifying glass to find your name to select from existing users.** ![](https://files.readme.io/152726b2ba33cd037328758c115b6c4ed7aeed5d379a5103a4a7a5703e55342f-image.png) 11. Navigate again to Apps-\>App Manager ![](https://files.readme.io/de1cf82765c89d7e1e6ecfa3d75a12ebda47d2f82e2661c36f2ecf2ab2eefbbf-image.png) 12. Find the connected App you just created, and on the right side click the dropdown and select “View” ![](https://files.readme.io/d62b2c641d5866d56fa049980b515f4f6352a8314f9a0a4368da621d9984c944-image.png) 13. Click “Manager Consumer Details” ![](https://files.readme.io/768503d28c5f93f9b68bbeaa3164282f12923397478f9d84b2dbaaf5d77d8bbe-image.png) 14. You may be asked to verify your identity. Salesforce will send a code to the email you registered your Salesforce account with. ![](https://files.readme.io/a5a133f0917f5c218abf1c3ea440aaed64d83aac60f57e033eedf7548f51770c-image.png) 15. Once you verify, you should see a Consumer Key and Consumer Secret. **Be sure to copy and paste both of those values to use later.** ![](https://files.readme.io/50b8b39ab77a998bad61028f949793793bbd2e57ac6a720110ff35dd145601de-image.png) # Create a JIRA API token 1. Navigate to [https://id.atlassian.com/manage-profile/security/api-tokens](https://id.atlassian.com/manage-profile/security/api-tokens) 2. Click “Create API Token” ![](https://files.readme.io/236029bf59bd3ff17c82b8bb00ad7f892625bc4f1f47a44471f87246e02542b7-image.png) 3. Call it “Moveworks” or whatever you like and click “Create” 4. It will generate a token for you. **IMPORTANT: Make sure to copy and paste this token down on a notepad for later use. Once you generate it here you will not be able to view it again.**

# Create a Salesforce Connector 1. Navigate to the “Plugins” section on the top bar ![](https://files.readme.io/7509c61d5349006dfd12c5b4b3f5b7713d62bf0802d230ae425e1df04c9cac7f-image.png) 2. Navigate to the “Actions” section and on the top right choose “CREATE” ![](https://files.readme.io/c5376cd05effe336a2bee3c8aea6334ebba879f02644905a065f7e822f706647-image.png) ![](https://files.readme.io/240888413e8046f05e0a4ae65af8e76a6093afec40441e72551338ee1a6134fc-image.png)
3. Under the “Authorization” tab choose “Oauth2” ![](https://files.readme.io/d3d1025312c94586bc7b5db4e6c0c8688c809c7ebbcaee048c8279db2619ed4a-image.png) 4. Then choose an Oauth2 Grant type of “Client Credentials”\ Insert the Salesforce Consumer Key and Secret that you retrieved from prior steps ![](https://files.readme.io/750768e1a814012b87d03511539d44a6b72f979bf959fc880a5012c4cb957d55-image.png) 5. The **OAuth token URL** will be your Base URL from step 3 in addition to **/services/oauth2/token**. See the example below. Your OAuth2 Client Authentication will be “OAuth 2.0 with Request Body” ![](https://files.readme.io/677f83250d2246269c97157bd8b8642d95b6f96a942b0e1ff184d0b031a853e7-image.png) 6. Pick Json as the response type: ![](https://files.readme.io/bc1aac19e9ef6f9fc63f65d5090697cb25b0103fb0cd81d42baa4aa40bcff349-image.png) 7. Finally in the “Header Auth Value Pattern” enter **Bearer %s** as seen below. This tells Moveworks what format to pass the extracted token in the header. ![](https://files.readme.io/d6aa4b2b8a6fdbc7b4e8c8c2bb6eeb5465c9bf07366fdf4207c9cb885343e39d-image.png)