I'm trying to run this code:
Code: Select all
Dim virtualDirectory
virtualDirectory = "WebAPI"
Function changeURL()
Dim url
url = Session.Property("URL_USUARI")
Dim urlPaths
urlPaths = Split(url,"/")
Dim arrCount
arrCount = uBound(urlPaths)
Dim urlResults
urlResults = ""
For x = 0 To arrCount
if Not IsEmpty(urlResults) Then
If urlResults <> "" Then
urlResults = urlResults + "/"
End If
End If
if x<arrCount Then
urlResults = urlResults + urlPaths(x)
else
urlResults = urlResults + virtualDirectory
End If
Next
'test MsgBox(urlResults)
Session.Property("URL_USUARI") = urlResults
changeURL = 1
Exit Function
End FunctionAnd the log says: " CustomAction LaunchFile returned actual error code -1 (note this may not be 100% accurate if translation happened inside sandbox)"
Any ideas?
Thanks,
Arnau.
FOLLOW US
Get the latest news in Application Packaging