Calling PeopleTools APIs
You can call all of the PeopleTools APIs from an Application Engine program. When using APIs, remember that:
-
All the PeopleTools APIs contain a Save method.
However, when you call an API from your Application Engine program, regardless of the Save method of the API, the data is not saved until the Application Engine program issues a commit.
-
If you called a component interface from an Application Engine program, all the errors related to the API are logged in the PSMessage collection associated with the current session object.
-
If you sent a message, errors are written to the message log and the Application Engine message log.
-
If an Application Engine program called from a message subscription PeopleCode encounters errors and the program exits (with
Exit (1)), the error is written to the message log and is marked as an error