Skip to main content

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

getCurrentContextAPI(pageReference, targetContext)

Updated on July 20, 2021

Obtains an object that provides access to the APIs that read or update the state of the context.


An object that provides access to context APIs.


pageReferencestringThe reference to the page within the current context.
targetContextstringThe context whose state must be read or updated.
Note: If the value of targetContext is not provided, the default value is app.

Usage example

In this example, the property of the context object is updated.

const contextAPI = PCore.getMashupApi().getCurrentContextAPI("caseInfo.content", "app/primary_1/workarea_2");
contextAPI.setValue(".CustomerName", "Connor");
  • Previous topic createCase(className, targetContext, options)
  • Next topic openAssignment(assignmentId, targetContext, options)

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. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us