Skip to main content
Contributor
Jun 9, 2025 1:11 PM UTC
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?

Thanks a lot.

 

 

Contributor
Jun 10, 2025 12:17 PM UTC

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

2 replies

Employee - Sage
Jun 10, 2025 12:08 PM UTC

It's done by the system automatically, when you run an export job from DM.

So if you need that folder created from a BR, have the rule run a DM job with a dummy export job (e.g. an empty file). It might be difficult to write to that folder though, for security reasons.

 

IrinaDragusanuAuthorAnswer
Contributor
Jun 10, 2025 12:17 PM UTC

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