Question

9
Replies
532
Views
KiranKumarP4223 Member since 2016 5 posts
American Express
Posted: 3 years ago
Last activity: 2 years 9 months ago
Closed
Solved

Pega OOTB script pega.desktop.createNewWork is invoking a GET request, planning to change to POST

Hi,

We are trying to create new work using OOTB java script function pega.desktop.createNewWork(strClassName, harnessVersion, strFlowName, flowParams,contentID, dynamicContainerID,actionRequestID, skipConflictCheck),

This is by default triggering a 'GET' request to server, we are thinking of changing it to 'POST' by using the below piece of code in the custom function and call OOTB script. Please advise if there could be any side effects (or) any un-seen issues.

function customCreateNewWork(strClassName, harnessVersion, strFlowName, flowParams,contentID, dynamicContainerID,actionRequestID, skipConflictCheck){

pega.web.config.cmd.pegaAction.httpMethod = "POST";

pega.desktop.createNewWork(strClassName, harnessVersion, strFlowName, flowParams,contentID, dynamicContainerID,actionRequestID, skipConflictCheck)

}

We are using Pega 7.1.7, CPM 7.1.3.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Pega Customer Service Low-Code App Development Data Integration Java and Activities Case Management
Moderation Team has archived post
Share this page LinkedIn