Question

Accenture
IN
Last activity: 19 May 2025 11:03 EDT
Unable to launch Intent in Pega CS using java script
Hi Everyone,
I am trying to launch an intent on click of a button from an iframe which is embedded into our application. We are on Pega 8.8 version.
Below are the actions performed.
Actions Performed:
1. A button in Iframe on click of that we are able to run java script
2. Inside java script we tried various functions as listed below, but couldn't able to auto launch the service item/ intent
Function 1: pega.api.ui.actions.runAction({ action: "createWork", name: "pyStartCase", className: "ABC-FW-Work", context: "Primary" });
Function 2: pega.ui.actions.launchIntentTask( { intentTaskClass: "ABC-FW-Work", intentTaskName: "ScheduleOrder",
);
Function 3: pega.ui.actions.createWork( { className: "ABC-FW-Work", flowType: "pyStartCase", openInNewTab: false } );
Function 4:
pega.u.d.reloadSection({ section: "SectionName", activity: "ActivityName", primaryPage: "PrimaryPage", parameters: { Param1: "Value1", Param2: "Value2" },
Below function did work but, the service item/intent is getting opened in new tab. we need to open within the same interaction.
pega.desktop.createNewWork("ABC-FW-Work","1","pyStartCase")
Hi Everyone,
I am trying to launch an intent on click of a button from an iframe which is embedded into our application. We are on Pega 8.8 version.
Below are the actions performed.
Actions Performed:
1. A button in Iframe on click of that we are able to run java script
2. Inside java script we tried various functions as listed below, but couldn't able to auto launch the service item/ intent
Function 1: pega.api.ui.actions.runAction({ action: "createWork", name: "pyStartCase", className: "ABC-FW-Work", context: "Primary" });
Function 2: pega.ui.actions.launchIntentTask( { intentTaskClass: "ABC-FW-Work", intentTaskName: "ScheduleOrder",
);
Function 3: pega.ui.actions.createWork( { className: "ABC-FW-Work", flowType: "pyStartCase", openInNewTab: false } );
Function 4:
pega.u.d.reloadSection({ section: "SectionName", activity: "ActivityName", primaryPage: "PrimaryPage", parameters: { Param1: "Value1", Param2: "Value2" },
Below function did work but, the service item/intent is getting opened in new tab. we need to open within the same interaction.
pega.desktop.createNewWork("ABC-FW-Work","1","pyStartCase")
Please let us know if there any other options we can explore?
Appreciate your help,
Thanks,
Prashanth