Article Details
Id:19918
Product:finPOWER Connect
Type:NEW
Version:4.00.01
Opened:13/01/2023
Closed:30/01/2023
Released:20/03/2023
Job: J030309

Business Layer; New method to perform a Server.MapPath from Scripts

A new method has been added to make it easy to perform a Server.MapPath from Scripts, even though the relevant assemblies are not available to the Script. This may be useful for HTML Widgets running under finPOWER Connect Cloud that want to pick up the system.mdw file that is stored in the /App_Data folder of Web Services.

When not running on a Web Server, this method will simply return the path it was supplied, e.g.:

FullPath = finBL.Runtime.WebUtilities.ServerMapPath("~/App_Data/system.mdw")