Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
User avatar
By Srinivas
#786280
Hi,

I am using script in php

$caseId = '44756102555c4e859630f43089650367';
$caseFileId = '97205510555e4a28a092857090745482';
$delIndex = 2;
$url = "/api/1.0/{workspace}/cases/$caseId/$delIndex/input-document/$caseFileId";
$oRet = pmRestRequest("DELETE", $url);

if ($oRet->status == 200) {
print "Input Document file deleted.\n";
}
but didn't deleted file display error: {code: 400, message: "Bad Request: **ID_CASES_INPUT_DOCUMENT_DOES_NOT_EXIST**"}}
By zainab
#788308
Hello,

Check whether the value assigned to $caseFileId is actually the UID of the input document uploaded in that particular case. The APP_DOCUMENT table stores the information of the uploaded input documents for every case. The app_doc_uid passed in the url is the UID of the input document uploaded in a case and not the UID when an input document object is created from the Designer interface.

Also the user trying to delete the input document should have the Process Supervisor permission.

ICO software script is a pre-made program for crea[…]

A crypto exchange script is a pre-designed softwar[…]

So I recently bought an addmotor Ebike which of co[…]

A crypto casino clone script is a ready-made softw[…]