GenerateHttpURL method: File class
Syntax
GenerateHttpURL(URLID,FileName,User_ID,IsSecure,Time_to_Live,IsCaseSensitive)
Description
Use the GenerateHttpURL method to create an http(s) URL for a file in the PeopleSoft supported repository.
Parameters
| Parameter | Description |
|---|---|
|
URLID |
Specifies the URLID of the existing file repository on the PeopleSoft system where the file is stored. |
|
FileName |
Specifies the name of the file in the repository. If the file is available in a folder, the complete path should be included as part of the file name. |
|
User_ID |
Specifies the user for whom the request is created. |
|
IsSecure |
Specifies a Boolean value indicating whether the URL string should be https or not. The default is Yes, that is, an https URL string is created. |
|
Time_to_Live |
Specifies the time (in seconds) that the https link should be active from the time it is requested. The default is 600 seconds (that is, 10 minutes). |
|
IsCaseSensitive |
Specifies a Boolean value indicating whether the search for the file in the repository should be case sensitive or not. The default is False (that is, case-insensitive search). |
Returns
A String value containing the complete URL string. The URL is taken from the default portal node. If the portal node does not contain valid information, the generated URL could be invalid.
Example
&strURL = GenerateHttpURL("TESTSFTP", "PeopleBook.pdf", "PS", True, 600);