Two Problems in One - using CoPilot to draft and DriveItem challenge I am stuck with

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.

Hello @ton_roelandse!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff