Skip to main content


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

openLocalAction(actionID, options)

Updated on July 20, 2021

Opens the configured local action.

Returns

A Promise associated with the action.

Parameters

NameTypeDescriptionRequired
actionIDobjectThe ID of the local action.
optionsobjectThe JavaScript object containing the properties for opening the local action.

The following table contains the properties of the options object:

NameTypeDescriptionRequired
caseIDstringThe unique ID of the case. If this ID is not provided, it will be obtained using the current context.
Note: This is applicable for Case/Stage wide local action.
assignmentIDstringThe unique ID of the assignment. If this ID is not provided, it will be obtained using the current context.
Note: This is applicable for local action of type Assignment.
actionTitlestringThe title of the local action. This is used as the modal header title when the local action is displayed in the modal dialog.
typestringThe type of the local action. The values are Assignment, Case, Stage, and Express.

Example:

{caseID: "", assignmentID: "", actionTitle: "Edit Details", type: "Assignment" / "Case" / "Stage" / "Express"}

Usage example

In this example, the success callback is called if the local action is launched successfully.

const localActionPromise = getPConnect().getActionsApi().openLocalAction("EditDetails", { type : "Case" });
localActionPromise.then(() => {
 // local action success handling
}).catch(() => {
 // local action failure handling
});

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