The Session Class is the root of the API classes provided by PeopleSoft. It provides access to control the PeopleSoft environment including security and acccess, errors and error handling, regional settings and tracing.
The following APIs are accessible through the an active session object:
- Component Interface classs
- Portal Registry class
- Query class
- Search class
- Tree class
The session object handles error processing for all APIs. The following properties are available to check for errors:
ErrorPendingindicates whether there are API errors
WarningPendingindicates whether there are API warnings
These errors are stored in the
PSMessages collection which is a property of the session object.
Declare the session onject as either
Local. Use the
%Session variable to set the session to the current session:
Local ApiObject &objSession; &objSession = %Session;