Skip to main content
Cadet | Tier 2
December 24, 2025
Solved

sharepoint automation issue

  • December 24, 2025
  • 13 replies
  • 344 views

Hi ,

I created oauth connection for sharepoint using client credentials.connection also got succeded.i created bot for getting the folder from the sharepoint only contains 2 action . Authenticate and get folder activity. Iam getting error on 2nd line (executing get folder activity) . The folderpath and site name also correctly configured. Iam getting the error message “no such host is known (https)”

 

can you please help me to resolve this issue?

Best answer by Aaron.Gleason

@anjanakaruppan6 It appears you are using an on-premises control room. Make sure your control room is up-to-date and has the latest versions of the packages. 

If your control room is running older versions of the software, you will not see additional options. There is no workaround.

One of the biggest changes I made was switching to the Graph API option instead of the SharePoint API. As soon as I switched that, it started working.

13 replies

Aaron.Gleason
Automation Anywhere Team
Automation Anywhere Team
December 24, 2025

@anjanakaruppan6 I fought this recently too. It's likely your connection line #1.

If your SharePoint site is https://abc.sharepoint.com/, you only put "abc" in the site field. Nothing else. 

In your case, just "virginmediauk" and that's it. (Without the quotes, of course.)

Cadet | Tier 2
December 24, 2025

@Aaron.Gleason ,

while trying only with domain name iam getting below error

Aaron.Gleason
Automation Anywhere Team
Automation Anywhere Team
December 24, 2025

@anjanakaruppan6 great! Forward progress. You're not getting the Java error about not finding the domain. So line 1 is now correct. 

Try just Shared Documents by itself in the Get Folder call. 

If you want, contact me via email (instead of public forum) and send me your full SharePoint link and I can give you more personalised suggestions. aaron.gleason@automationanywhere.com

Cadet | Tier 2
December 24, 2025

For this case : https://abc.sharepoint.com/sites/test/ , in sharepoint authenticate action I put subdomain name as “abc” and site name as “test”(I added the details without double quotes). authenticate action is working , but while use get folder activity it is throwing above error(audience url validation failed exception)

Cadet | Tier 2
December 24, 2025

@Aaron.Gleason  while trying Get Folder action for Shared Documents also it is getting the same error

 

Aaron.Gleason
Automation Anywhere Team
Automation Anywhere Team
December 24, 2025

@anjanakaruppan6 Honestly, I used ChatGPT to help me figure it out. It's a lot of trial and error. Even ChatGPT didn't get the domain thing right -- I figured that out myself. 

Try leaving the site blank in line 1 and adding it in line 3. 

Cadet | Tier 2
December 24, 2025

@Aaron.Gleason  I changed the site to line3 still getting the same error

Aaron.Gleason
Automation Anywhere Team
Automation Anywhere Team
December 24, 2025

@anjanakaruppan6 Just keep messing with it or have ChatGPT assist. That’s what I did and eventually we succeeded. 

 

 

Cadet | Tier 2
December 24, 2025

@Aaron.Gleason  for me there is no option to select API in the Authenticate action. But in your screenshot I can see this. I tried with the help of chatgpt but still issue no reolved.

 

Aaron.Gleason
Automation Anywhere Team
Automation Anywhere Team
December 24, 2025

@anjanakaruppan6 It appears you are using an on-premises control room. Make sure your control room is up-to-date and has the latest versions of the packages. 

If your control room is running older versions of the software, you will not see additional options. There is no workaround.

One of the biggest changes I made was switching to the Graph API option instead of the SharePoint API. As soon as I switched that, it started working.