HI Kelvin,
Since Studio Web doesnât have a direct âCreate CSV (SharePoint)â activity, the best approach is to first convert your DataTable into a CSV string and then create or upload the file directly into SharePoint using the Microsoft 365 activities.
Hereâs the simplest way:
Recommended Approach
Convert the DataTable to CSV text:
Use the Output Data Table activity and store the result in a string variable (e.g., csvText).
Set the column delimiter as ,. If your data might contain commas or special characters, you can wrap values in quotes.
Create the file directly in SharePoint:
Use the Microsoft 365 âCreate Fileâ activity.
Choose your SharePoint site and library, and give the file a name (e.g., /Reports/Export_2025-07-30.csv).
Set the file content to the csvText string you generated earlier.
Make sure to set the content type to text/csv; charset=utf-8.
This way, you avoid writing anything to a local folder (which doesnât work in cloud robots anyway) and directly save the file in SharePoint.
Other Options
If you prefer, you can create the CSV in OneDrive and then use the Copy File activity to move it to the right SharePoint folder.
For advanced users, you can also use the HTTP Request activity with Microsoft Graph API to upload the file, but thatâs usually not necessary.
Why âCreate CSV (local)â doesnât work
When you use Create CSV (local) in Studio Web, it tries to write the file on a temporary cloud robot machine. You wonât be able to access that file, so itâs not a viable option.