Skip to main content
All CollectionsFAQsAuthentications and integrations and connectionsManaging connections
Connecting to a Salesforce org hosted on Alibaba Cloud in China
Connecting to a Salesforce org hosted on Alibaba Cloud in China

If you have an org hosted on Salesforce China you will need to connect it to Gearset to use it for metadata deployments.

Claudia McPhail avatar
Written by Claudia McPhail
Updated over a week ago

This feature is available on request. If you'd like to use it, please get in touch.

Introduction

Now that Salesforce on Alibaba Cloud is live, your organisation may have started planning their multi org strategy.

If you have a Salesforce org hosted on Alibaba Cloud you will need to connect it to your Gearset account, which will allow you to:

This article will take you through the process of connecting to a Salesforce on Alibaba (aka SFOA) org.

Note: If you're planning to use team-shared Pipelines, please make sure you connect to any shared orgs using team-shared connections.

Creating a connected app in your SFOA org

Before you start, make sure that you have a user in the org with these permissions.

To use Gearset with your Salesforce China instance securely, we're going to create a Connected App within your instance that will allow Gearset to connect with it.

Configuring the basic connected app settings

In your org:

  1. Open Setup.

  2. Search for App Manager and open it.

Click New Connected App in the top right of the screen.

Next, enter the following information:

  1. Connected App Name

  2. API Name

  3. Contact email (this should be your email)

  4. Contact Phone
    leave blank

  5. Logo image url
    leave blank

  6. Icon url
    leave blank

  7. Info url
    ​​https://gearset.com (optional)

  8. Description
    An OAuth app to allow Gearset to deploy to orgs based in China.

Check the Enable OAuth settings checkbox, and input the following values.

  1. For the Callback URL enter (New line for each of them)
    https://app.gearset.com/authorization/callback https://staging.gearset.com/authorization/callback http://localhost:1234/authorization/callback

  2. Enable for device flow
    leave blank

  3. Call abc url
    leave blank

  4. Use digital signatures
    leave blank

  5. Selected OAuth scope
    Full access and Perform requests at any time

  6. Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows
    tick

  7. Require Secret for Web Server Flow
    tick

  8. Require Secret for Refresh Token Flow
    tick

  9. Enable Client Credentials Flow
    leave blank

  10. Enable Authorization Code and Credentials Flow
    leave blank

  11. Enable Token Exchange Flow
    leave blank

  12. Enable Refresh Token Rotation
    leave blank

  13. Issue JSON Web Token (JWT)-based access tokens for named users
    leave blank

  14. Introspect All Tokens
    leave blank

15. Click the ”Save” button at the top of the screen, and on the next page click Continue.

16. Click the ”Manage” button at the top of the page.

17. Click “Edit Policies” at the top of the page.

18. Set “Permitted Users” to All users may self-authorize.

19. Click “Save”, the final settings should look like this.

Getting the Consumer ID and Secret

To get the Consumer ID and Secret:

  1. Open Setup.

  2. Search for App Manager and open it.

  3. Find your new App, and click “View”.

  4. Click “Manage consumer Details”.

  5. On the next page you will see the Consumer Key and Consumer Secret.

    1. Copy both of these values, as Gearset will need them to complete the connection.

Connecting to your SFOA org

You will need to start by creating a connected app in your SFOA org.

  1. Navigate to the Salesforce org connections page in Gearset.

  2. Click "Add new organization".

  3. Input the following details:

    1. Org type (Production or Sandbox).

    2. Username.

    3. Enable the "Custom Salesforce client":

  4. Paste the Consumer Key in "Client ID" and Consumer Secret in "Client secret", and click Authorize.

  5. Log in and authorise the connection.

After the connection is complete you will see it on your list of connected orgs here. You can also delegate access to your team members.

Did this answer your question?