How to Add a Custom Salesforce Domain
Some organizations have security restrictions for non-custom domain access. In these cases, a custom domain name can be added to the Salesforce Input Tool, rather than the default 'https://login.salesforce.com/services/oauth2/token'.
Prerequisites
- Alteryx Designer
- Salesforce
- Salesforce Input Tool
Procedure
- Navigate to C:\Users\%username%\AppData\Roaming\Alteryx\Tools\SalesforceInput_v4.2.4.
- Before making any changes, a backup is a good idea. Make a copy of the 'main.py' file.
- Open the 'main.py' file (not the copy) in Notepad or another text editor.
- Locate the line that includes 'tok_url'. This is the Token URL that references the default domain.
image.png
- Replace the string with your custom domain, followed by "/services/oauth2/token". For example, if your custom domain was https://alteryx.salesforce.com, the tok_url would be 'https://alteryx.salesforce.com/services/oauth2/token'.
- Ensure there are single quotes (') surrounding the URL.
- Save the file.
Additional Resources