Is there a way to use files from one-drive as attachments in automation without connecting one drive account to PC

I have one-drive folder link shared with me.
I want to use those files as an attachment without connecting the account to my PC

Yep, API based usage does this.

Connecting the user to OneDrive and hoping it syncs correctly is in my opinion a non-viable option cause of how awful and buggy it is.

The integration service would be my preferred suggestion to handle this.

1 Like

Can you share some helpful resource

Check out the integration service, there are lots of resources there, and look into the UiPath Onedrive activities.

You can access the files from the shared OneDrive folder by using the link through HTTP requests or browser automation in UiPath. After saving the files locally, you can attach them in your process without needing to connect the account to your PC.

Thats precisely what the activities from UiPath also do, but they provide proper activity cards etc and can also manage the connection better, using the HTTP request activity will be making your life harder in my opinion as you have to build the JSON body and parse the response yourself.