community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx Knowledge Base

Definitive answers from Designer experts.
 You are using an unsupported browser for translation. Please switch to another browser.

Querying a Salesforce report using the Salesforce Input tool returns a maximum of 2000 records.
View full article
The improvements in our salesforce connectors have been astronomical over the last year and now it is easier than ever to navigate the UI configuration screen and connect to your Salesforce Data!
View full article
  Salesforce Tools                                            Connecting to Salesforce In order to use the Salesforce Input or Output tools in Alteryx, you must first connect to Salesforce using your Salesforce credentials:   URL - The URL of your salesforce instance in the format: https://[instance].salesforce.com where [instance] is the domain of your Salesforce environment. User Name - Salesforce username (often an Email address). Password - Password associated with Salesforce account. Security Token - If necessary, you can send a new token to your email by logging in to Salesforce, going to “My Settings”, and selecting “Reset My Token” under the                                        “Personal” tab.   Once you click the ‘connect’ button, Salesforce will authorize your credentials, and you will be able to begin using the tool to query Salesforce data.   Salesforce Input Tool (Querying Salesforce)   Query Builder: The Query Builder has four fields that allow you to select the data you would like to pull from Salesforce simply, without having to write full SOQL (Salesforce Object Query Language) statements:   Table: Select the table you would like to pull fields from. *The list only includes ‘Queryable’ tables as defined by the flag ‘Queryable’ set to true or false returned by the API call.   Fields (optional): Select the fields in the table you need data from. If no fields are selected, all fields will be pulled.   Record Limit (optional): Place a MAX on the number of records you will pull.   WHERE Clause (optional): Using a SOQL statement, specify the conditions that you require for the data you pull. *You do not need to include ‘WHERE’ in the statement. Ex. AccountID = ‘2543456’   It is best practice to limit the records you bring in with the Fields, Record Limit, and WHERE clause arguments in the Salesforce Tool instead of bringing in all of the salesforce data, and then filtering down the data with tools in Alteryx.   Custom Query: If you prefer Querying Salesforce using SOQL, you can use the Customer Query to write out SOQL statements. For full SOQL Syntax, see this link. If you began using the Query Builder, and decided to change to the custom query, you will be prompted in the Custom Query Builder to pull in the query you began in the Query Builder in full SOQL syntax:   Below the SOQL Query text box is a check box for “Attempt to Parse JSON Response.” With this box checked (the box is checked by default), Alteryx will attempt to parse the response returned from the API call for quick viewing in the results window.  If the box is left unchecked, the API response will be returned in one field titled “JSON.” You can parse this response using the JSON Parse tool in Alteryx.   Next to the “Attempt to Parse JSON Response” check box is a “Validate” button. Clicking this button prior to running the workflow will submit the query to Salesforce to determine if it valid. It will also check to see if the response from the API will be able to be parsed automatically, which should prompt you to leave the “Attempt to Parse JSON Response” check box selected. _____________________________________________________________________________________   Salesforce Output Tool (Writing to Salesforce)   Connecting to the Salesforce Output is identical to the Salesforce input tool. URL, User Name, Password, and Security Token are all required credentials to connect to the API. There are only two options that need to be selected in the Salesforce Output tool. Both are required.   Table: Select a table to write to from the list of tables available   Output Operation: Select the operation for how you will write the data to the table. The three available options are Update, Insert, and Delete.   ** If you want to overwrite values in Salesforce with null values, use “#N/A” instead of “null.” You can accomplish this with a replace function in the Formula tool.   Basic Troubleshooting steps:   Error: “Unable to reach SOAP API (Check URL)”   -The first thing to check with this error is that the URL you entered is correct and in the format: https://[instance].salesforce.com.   -Check to see if your username needs to have the domain attached (eg. JonDoe@alteryx.com).   -If you’ve ensured that the URL is correct, this may be a proxy issue. Alteryx should pick up the proxy settings, but you may need to enable them manually by going to Options->User Settings->Edit User Settings->Advanced. There is an article on the community that walks through this.    -The tool requires that your Salesforce account is API enabled. You may have to work with your Salesforce administrator for granting your account API User Permissions.   _____________________________________________________________________________________   Error: “The following fields are not updateable members of the target table: (table)”     This error is telling you that your Salesforce administrator has locked the fields from being updated, and you will have to work with them determine what can be updated. ____________________________________________________________________________________   Error: “INVALID_LOGIN: Invalid username, password, security token; or user locked out.”   After you have confirmed that your credentials are correct, and you are not locked out of Salesforce, check to see if your company uses SSO (single-sign-on) for Salesforce. You can check this by seeing if Salesforce requires a password when you log in a browser. This authentication is not supported by the connector, and will not work. Custom domains are also not supported by the tool. Check to see if you are using a custom domain to log onto salesforce. You will know you are using a custom domain if this screen appears when logging in to Salesforce:     Because there are “two pages”/steps for authentication, and the tool can only send one request, this type of authentication is not supported.   *See the “Common Issues” section of this Community article by @JordanB for more common issues and troubleshooting steps.   Other:   Salesforce has a maximum length for SOQL statements, which is set at 20,000 characters by default. There is also a maximum length of 4,000 characters for the WHERE clause.  Other SOAP API call limits can be found here.   As the API accepts data in batches which have limits, the output tool contains logic to take care of the batching. Please see this link for more details.
View full article
Steps that provide a better "Query Builder" in which you can build and copy SOQL for Salesforce Connectors.
View full article
In Designer v10.1, there are four components to making Salesforce connections in the Designer Salesforce tools:   Making sure you have the correct Salesforce URL; it would look something like https://[instance].salesforce.com. For an example, I've posted one that I use below: Your Salesforce username Your Salesforce password A Security token that you can recover from your Salesforce administrator or using the steps below (if you have the sufficient privileges from your Salesforce admin): In Salesforce.com, click on the picture icon in the top right hand corner and click on my Settings Click on Personal > Reset My Security Token   This will send out an automated email with your security token. Voila! You should be ready to connect!     If you have trouble connecting thereafter, please consult our help pages or the Client Services team!
View full article
Question Do you use the Salesforce Input tool to bring data into Alteryx? Are you only interested in looking at a certain timeframe for that date? Answer If so, Alteryx has the ability to use SOQL date queries so that you pull data for a certain time frame instead of pulling ALL of your data and then having to filter out what you are interested in. Pulling all of your data can take some time depending on the size of your table and this is a quick way to get around a potentially slow data pull.   Once you have entered your salesforce credentials, go ahead and pick your table (1). From the table you have selected choose your fields (2). At least one has to be some kind of field with dates and/or date times recorded. And finally you can enter in an SOQL query that will execute on your date field (3).   The date query that you enter could be something as simple as a specific date, for example ‘DateField  = 2016-03-31’ or ‘DateField  > 2016-03-31’. Or you could use some of the SOQL date literal query options. For example ‘DateField  = YESTERDAY’ or ‘DateField  = LAST_QUARTER’     Here is a full listing of your date query options when using SOQL to query on dates in the salesforce input tool - Date Formats and Date Literals. If you need help in getting your salesforce login credentials please see our Obtaining Credentials for the Salesforce Connectors article.     If you run into any issues with the Salesforce input tool, please feel free to reach out to our Client Support team - Alteryx Support Page. 
View full article
We've all been there.  You have a module or app that works completely fine, then without warning you are getting errors that don't make any sense.  In this case, the Alteryx Salesforce Connector inexplicably began to throw errors that I have never seen before.   What happened?   Salesforce updated their service with additional fields, but the API needed to be updated in order to account for these fields.  Once the API was updated, our connector was not able to recognize or understand how to handle these additional fields.  As a result, you will get an error similar to " ParseError: Invalid document structure at line 1 and column 1, while processing "Input" ”.    How do I fix it?  Unfortunately, for 8.6 users we are limited to one option.  If you de-select each of the fields that are causing an issue from your Salesforce Connector tool, it will run without error.  Try the following steps: Click on your Salesforce Connector tool. Within the Properties window, click on the Table tab.  De-select the following fields: Account.BillingAddress Account.ShippingAddress Account.PersonMailingAddress AccountCleanInfo.Address Contact.MailingAddress Contact.OtherAddress ContactCleanInfo.Address Contract.BillingAddress Contract.ShippingAddress DandBCompany.Address DandBCompany.MailingAddress Lead.Address LeadCleanInfo.Address Organization.Address Quote.BillingAddress Quote.ShippingAddress Quote.QuoteToAddress Quote.AdditionalAddress ServiceContract.BillingAddress ServiceContract.ShipingAddress User.Address UserProfile.Address For 9.0, this will not be an issue.  Alteryx fully intends to utilize every field the Salesforce API supports, and Alteryx 9.0 will reflect this.  If you have any questions, please don't hesitate to reach out to support@alteryx.com.  Thanks, and until next time! - Chad Follow me on Twitter! @AlteryxChad 
View full article