📚 SAP Business One SDK Help

PathAdmin Object
See Also  Members  Example

Description

An object for setting and getting directory paths for storing various files.

Source tables: OADP

Remarks

To set paths in the application, go to Administration --> System Initialization --> General Settings --> Path tab.

Example

Setting file paths (C#)Copy Code
// Get the path admin object  
CompanyService com_service = DICompany.GetCompanyService(); 
oPathAdmin = com_service.GetPathAdmin(); 
 
// Set new paths 
oPathAdmin.WordTemplateFolderPath = "c:\Documnets\Templates\"; 
oPathAdmin.PicturesFolderPath = "c:\Documnets\Pictures\"; 
oPathAdmin.AttachmentsFolderPath = "c:\Documnets\Data\"; 
oPathAdmin.ExtensionsFolderPath = "c:\Documnets\Extention\"; 
 
// Update paths 
com_service.UpdatePathAdmin(oPathAdmin);

See Also