The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
Sergey
OneStream Employee
3 years agoSaveFileBytesToUserTempFolder returning an error message
Hi,
I am trying to use the Business Rule API "SaveFileBytesToUserTempFolder" in order to open a file stored as a byte in a datatable.
This is exactly like in the "Reporting Compliance" dashboard,...
Gidon_Albert
3 years agoContributor II
We ended up saving the data to the user's folder instead of the temp folder:
'Export the data
Dim fileName As String = "IC_Detail.csv"
Dim filePath As String = "Documents/Users/" & StringHelper.RemoveSystemCharacters(si.UserName,False,False)
'Export csvContent to User Folder
Dim fileBytes() As Byte = system.Text.Encoding.Unicode.GetBytes(csvContent.ToString)
Dim fileDataInfo As New XFFileInfo(FileSystemLocation.ApplicationDatabase, fileName, filePath)
Dim fileData As New XFFile(fileDataInfo, String.Empty, fileBytes)
brapi.FileSystem.InsertOrUpdateFile(si, fileData) Related Content
- 2 months ago
- 2 years ago
- 3 years ago