getCurrentContextAPI(pageReference, targetContext)
Obtains an object that provides access to the APIs that read or update the state of the context.
Returns
An object that provides access to context APIs.
Parameters
Name | Type | Description | Required |
pageReference | string | The reference to the page within the current context. | ✅ |
targetContext | string | The context whose state must be read or updated. | ❌ |
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)