Question

2
Replies
566
Views
PatrickC8660 Member since 2014 24 posts
TD Bank Group
Posted: 2 years ago
Last activity: 2 years 3 months ago
Closed
Solved

CPM Finish assignment / Submit Flow Action from Java Script

We have a requirement where from an Intent we create another work object, display it and submit the current intent.

The only way we could find to kind of do it is to create the work object as part of the post processing on the Intent and have another "dummy" assignment to the current user which displays a section with some javascript which opens the newly created work object using pega.desktop.openWorkByHandleReload and then submits the assignment.

I am able to easilly close the work item, but this won't finish the assignment. I tried using
doFormSubmit('pyActivity=FinishAssignment',this,'Submitting...',eve);
which submits the flow action, but it does not mark the intent as completed.

Is there a way to do this which would mark the Intent as Completed inside the current Interaction?

***Edited by Moderator Marissa to update categories***

Low-Code App Development User Interface
Moderation Team has archived post
Share this page LinkedIn