Skip to main content
Question

facing issue with sharepoint oauth package

  • July 7, 2026
  • 7 replies
  • 180 views

Mandar12

I tried to create control room oauth connection. After adding necessary details. Im able to test connection. However when i try to create folder its like driver id / list issue. Same if i use direct rest api calls with graph api its working can someone suggest anything 

 

7 replies

Mandar12
  • Author
  • Navigator | Tier 3
  • July 7, 2026

Im getting unable to get driver/ list id error for particular folder path.


Mandar12
  • Author
  • Navigator | Tier 3
  • July 7, 2026

Can someone please help me with this 


Mandar12
  • Author
  • Navigator | Tier 3
  • July 8, 2026

 

 


Mandar12
  • Author
  • Navigator | Tier 3
  • July 8, 2026

@Vatsy 

@zaid.chougle 

@Padmakumar 

@madhu subbegowda 

@jackson 

@HARUN KUMAR 

@NewTushitha 

​guys can someone please help on urgent basis 


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • July 8, 2026

@Mandar12 It’s not specified, but are you using the SharePoint package in Automation Anywhere?

In Microsoft Graph terminology, a document library is a Drive, and "Unable to get Drive ID/List ID" usually means AA is trying to locate a document library, not a folder.

I would start off with getting the SharePoint: Get folder(s) action working and returning the list of folders. If you can get this list of folders successfully then you know you have all the parameters set properly and the Create folder action should behave using the same parameters.

Beware when using the Get folder(s) action: It returns a List variable and the subtype must be Any. This is because this action returns a List with nested Dictionary variables. You can then Loop through the List variable, and assign each item to a Dictionary variable with a subtype that also must be Any. This is because there are nested Dictionaries returned.

Use Debug mode to inspect the List and nested Dictionary variables

 


Mandar12
  • Author
  • Navigator | Tier 3
  • July 9, 2026

Hi ​@Aaron.Gleason , im able to create a control room oauth connection and use in sharepoint package. However the only issue is after 1-2 hrs i have to do test connection  again in control room oauth so  that connection is active for bot use. Is there a way we can auto refresh the token so i dont have to manually do test connection again 

 

my second concern is when i re run bot the create folder action from sharepoint fails stating folder already exists. This was not the case when we use to use previous oauth option. Since now the older option is no longer active we have to switch to control room oauth . Is there a way we can handle that


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • July 9, 2026

@Mandar12 The active length of the OAuth connection is dictated by Microsoft. From what I understand, if you set your OAuth connection into a "production" mode or something similar (on the Microsoft side), it allows your connection to stay active for a long time.