How to write datatable data into my one drive excel file which is having same

Hi team,

I want to write dataTable data into my one drive excel file where iam having similar header names available and also in one drive excel file I have some extra headers how to do this

@Naveen_Kanike,

Use Write Range activity of UiPath.MicrosoftOffice365.Activities.Excel.WriteRange

Thanks,
Ashok :slight_smile:

how set up my one drive file path into write range activity of UiPath.microsoftoffice360

hi @ashokkarale ,

are you there?

@Naveen_Kanike,

It will require O365 Integration or Active directory Application with OneDrive Scope access.

Thanks,
Ashok :slight_smile:


I set up 360 connection but it’s asking the workbook file path? In write range activity

@Naveen_Kanike,

Use Find Files And Folders to find your desired file first and output of this activity would be DriveItem() pass first result drive item to write range (e.g., myWorkbooks(0))

Refer this documentation for more understanding.
Write Range Workbook Property

Find Files And Folders

Thanks,
Ashok :slight_smile:

Is there any alternative for the solution I don’t have azure access

@Naveen_Kanikem

Do you mean you can use Find files and folders? If you don’t have access to OneDrive, SharePoint scope access, you would require it.

Other solution would be downloading, updating and the reuploading the file.

Thanks,
Ashok :slight_smile:

You can sync your OneDrive locally and use it as a local file system.