Mikki
1 day agoNew Contributor III
How to read csv file from Documents/users folder?
Hi,
I have been trying to read a csv file that is in Documents/Users/userxxxx folder. Not able to make it work. Getting an error.
Below is the code
Dim FileName As String = args.NameValuePairs.XFGetValue("Param1", String.Empty)
Dim sourceFolder As String = $"Documents/Users/{StringHelper.RemoveSystemCharacters(si.UserName,False,False)}"
Dim fullPath = sourceFolder & "/" & "abc.csv"
Below is the error
Could not find file 'P:\Program Files\OneStream Software\OneStreamAppRoot\OneStreamApp\Documents\Users\userxxxx\abc.csv'.
Any idea why this is not working?
Thank you,
Mikki