Firstly - I attempted to use AutoPilot to write / construct some automation through “generate with Autopilot” - my project is VB.NET - however when the code is created it is in C# an thus the compiler errors out. Even though I specify in the prompt to use VB.NET. - not sure how to correct this…
Secondly - I am stumped by something so easy ( I think ) - I looked at the community and could not find anything recent that will help - all versions UiPath and Activities as current and no pre-views are used. So - upload a local file to sharepoint…I Do have the correct location (URL). I Used Get file or Folder to validate this - and store the output in an O365DriveRemoteItem type. It lists the URL, URI, etc. nicely. So far so good - then I want to use Upload File to Location - and set the files to upload to a local file, and I am soooo stuck with the destination folder… it wants a DriveItem variable type. Now I did create a DriveItem variable type and assigned the value like this "Location = New Microsoft.Graph.DriveItem With {.weburl = “https://xxxxxxxxxx.sharepoint.com/sites/xxxxx/Shared%20Documents/General”} which does assign weburl nicely… but when I use this variable “Location” like location.weburl it complains that its a string… I go around in circles and I am dizzy today. Ofcourse tried all the recent gen AI;s as well to find a solution but I must be missing something obvious. Yes - it is in a 365 Scope, and yes all permissions are good.