Looking for Starter Kits? Head to the Community Gallery! Now formatted as YXIs for easy installation.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

SharePoint Input Tool - SharePoint Online

12 - Quasar



We have had workflows with connections to a SharePoint List running for year's on our Prod Server because we have used SharePoint 2010 and we can utilize our Batch ID and password to gain access to the list.


We are moving to SharePoint Online and the SharePoint Input Tool's configuration asks for an email address...  My BatchID doesnt have an email address, so I am at a loss for what to do.


Anyone know how to gain access to a list like this with a BatchID in use?


Thanks for any assistance that can be provided.



Alteryx Alumni (Retired)

Hi @DanielG 


There are only two options for connection to SharePoint online - using an email address, or using app creds:




Can you make app credentials for your process? 


Jake Samuels

Principal Support Engineer
Alteryx, Inc.
12 - Quasar

I am not sure if I have the capability to create app credentials.  I have never had to do that before, so I will need to work with some of our more technical folks to figure that out.


Thanks for the information!!!



8 - Asteroid



Here is what you do to obtain SharePoint credentials.

1) You need to be elevated to "Owner" status for the site in question.


2) Utilizing a browser, go to your tenant (your company) SharePoint site with the following appended to the end: "_layouts/15/appregnew.aspx"

Example - https://(your company name).sharepoint.com/sites/sitename(your SharePoint groups name)/_layouts/15/appregnew.aspx


3. Click on "Generate" for both Client ID and Client secret as shown below in step 5


4. Give title as shown in the screenshot.


5. Give "www.localhost.com" for App domain and " https://www.localhost.com" for Redirect URI as shown in the screenshot.


6. Click on create as shown in the screenshot.


7. Add _layouts/15/appinv.aspx at the end of URL in yuor browser

Example - https://(your company name).sharepoint.com/sites/sitename(your SharePoint groups name)/_layouts/15/appinv.aspx


8. Give App id which is already generated and click on look up as shown in the screenshot.


9. Repeat 4 and 5 steps for the remaining fields.


10. In Permission box, enter the below code


  <AppPermissionRequests AllowAppOnlyPolicy="true">       <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl"/> </AppPermissionRequests> 


11. Click on create button.


12. In next dialog, Click on trust it as shown in the screenshot.


13. Now with generated Client Id and Client secret , one can connect to SharePoint Online through app only authentication.


These are what you have to use to be able to pull from a Sharepoint365 list. Make sure that you are pulling the correct View - there are often several ones that have been created by users of the site !! 



12 - Quasar

Thanks for writing up that solution.  Much appreciated.


In my particular situation, we realized that our batchID was being blocked by our SSO process, so once we remedied that, the email and password worked.


I had just forgotten to write about it on here until your post reminded me.  🙂

9 - Comet

I did the process listed above to obtain my SharePoint credentials, but when I tried to use them with a SharePoint List Input tool, I got the following error:  "Error encountered: Token request failed."  The error popped up after I pasted the URL, Client ID, and Secret Key.  I wasn't able to enter List or View after the error appeared.  Both drop downs were empty.  Can anyone help me with this?

8 - Asteroid

You have been granted SCA (Site Collection Admin) rights by the tenant IT admin team? That, and you are also utilizing "App Only Authentication (Online/Office 365, 2016)" for the tool? You know that the Oauth creds you are attempting to submit are not valid if no List/Views populate after entering those datapoints.

9 - Comet

No, I'm afraid I didn't know that.  All of that is so far over my head it's clear that I'm trying to do more than I'm qualified to do.

8 - Asteroid

I'd suggest searching your Outlook contacts for "O365" or other such PDL's if you're in a corp environment and you're not aware of the IT teams that are responsible for your SharePoint online tenant ("yourcorpsname.sharepoint.com/sites/your_tenant_site_where_your_lists_are/one_of_your_list_names"). Most corps are setup so that SCA rights would be granted to what your particular sub-tenant address is (yourcorpsname.sharepoint.com/sites/your_tenant_site_where_your_lists_are/) this would be what they'd grant for since it would be very unusual/unwise to grant a user access to the whole tenant -- you'd be able to obtain data from any other part of the company if that was the case. There is also quite a bit that can be gleaned from using powershell office 365 commandlets, and there's quite a bit on MS and other sites that can serve as demo's for how to install the needed cmdlets and drivers to obtain info in that regard. Something like this can be a primer, but there is a ton of info out there to do this --https://www.virtualgyanis.com/post/office365-how-to-connect-office365-tenant-via-powershell  You have to remember that the backend Azure where SP365 data is stored is just a database, these functions are the equivalent to obtaining dbase access: 

1) Owner on a sub-tenant (NOT Admin, you have to be elevated to an Owner status) = Being placed into an identity mananger "group"

2) SCA rights = being granted the permissions to obtain OAuth credentials from the Azure db

3) your sub-tenant = the particular schema of the db holding data pertinent to your Lists/View you're trying to access

4) OAuth creds = they act just like your active directory creds if you were given access to a SQL db that used AD for authentication

Once you find the IT teams that are your admins, they'll likely know, or know how to find out from the MS team supporting your O365 instance.

8 - Asteroid

This instruction works perfectly. I am able to follow the instructions and upload data to my sharepoint lists on one site only.

I need to upload data to a different sharepoint site. After setting up a new site, I created the new Client ID, Secret Code, followed the instructions until the last step.

I replicate the same Sharepoint List that works on the first Sharepoint site. Here is the error message. 

Do you know if we can publish Sharepoint Lists to multiple site from Alteryx?

Thank you very much in advance.


SharePoint List Output (5) An error occurred while writing record. Record was partially written. Check List in SharePoint.


Alteryx Sharpoint_LI.jpg

Alteryx Sharepoint Error2.png