Question
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.
Hello
Since this has not be tried and tested with POST , i cant comment on the implications of the same.
However, out of curiosity just want to know, what is the business purpose behind changing the type to POST