Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
American Express
US
Last activity: 16 Oct 2018 12:03 EDT
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.