Share this page

# PPMAPI

This section describes how to call PPMAPI, a JavaScript API, in your custom code to access PPM resources.

## Functions

The PPMAPI supports the following functions:

Function | Description
--- | ---
`PPMAPI.context` | You can call this function when writing custom HTML code for a custom UI element by using the HTML - Constant Rendered HTML Code validation. For details, see HTML - Constant Rendered HTML Code. It retrieves content information for the current dashboard or request details page, including request ID, request name, and the currently logged-in user, among other relevant information.
`PPMAPI.reports.submit(...)` | You can call this function in your HTML+ porltet JavaScript code, enabling users to submit reports from the HTML+ portlet. For details, see HTML+ portlets.

For a list of supported functions and instructions on how to use the JavaScript API, refer to the PPMAPI.js file in the <PPM_HOME>\server\_common\deploy\itg.war\js\common\api directory.

## See also

- HTML+ portlets

https://admhelp.microfocus.com PPM 8942
Tips to improve your search results... OpenText™ Project and Portfolio Management Help Center PPM Help 26.2-26.3 All View Local Help Center View Online Help Center Version: