Skip to main content


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

getDataObject(contextName)

Updated on July 20, 2021

Obtains the data associated with the current context from the Store.

Returns

The data as an object.

Parameters

NameTypeDescriptionRequired
contextNamestringThe name of the current context whose associated data is obtained.

Usage example

In this example, the API obtains the data associated with the current context from the Store and stores it in the data variable.

const data = pConn.getDataObject();
const { caseInfo, pulse } = data;

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