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

IrinaDragusanu's avatar
IrinaDragusanu
Contributor
1 year ago
Solved

Creating username folder in Data management Export folder

Hi, Can anyone help with a way of creating username folder in Data management Export folder? This is in the File Explorer area. Is there a way to create a folder here through a business rule? T...
  • IrinaDragusanu's avatar
    1 year ago

    Hi Jacka,

    Thank you so much for taking the time for this. That folder has some restrictions.

    However, we were able to add the below in our FDX BR rule and it worked:

    Public Sub CheckCreateFolder(ByVal si As SessionInfo, ByVal foldername As String)
     
                        Dim dmExportPath As String = FileShareFolderHelper.GetDataManagementExportUsernameFolderForApp(si, True, AppServerConfig.GetSettings(si).FileShareRootFolder, si.AppToken.AppName) 
                        
                        ' Create outgoing folder if doesn't exist
                        Me.CheckCreateFolder(si,dmExportPath)
     
    ' Check if folder exists, if it doesn't create
    If Not Directory.Exists(foldername) Then Directory.CreateDirectory(foldername)
    End Sub

     

    Thanks,

    Irina