Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

getDataPageObjects(useCache)

Updated on July 20, 2021

Retrieves the list of data objects in the current application.

Returns

A Promise that resolves to a response containing data objects corresponding to data pages.

Parameters

NameTypeDescriptionRequired
useCachebooleanThe flag that determines if session cache must be used.
Note:
  • The default value is true.
  • Set useCache to true if you want to use session cache.

Usage example

In this example, the API returns the list of classes with data pages of type list that have no parameters and which can be queried and backed by a report definition.

const dpObjs = PCore.getAnalyticsUtils()
.getDataPageObjects(false)
.then(({ data }) => {
const { dataPages } = data;
return dataPages;
});

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us