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.
#783972
A question about the REST API - Create Case
How do I find the Task ID to use for a Process?

My colleague who knows ProcessMaker said
if i was looking for the starting task id of a process in a trigger i'd query this

executeQuery("SELECT TAS_UID FROM TASK WHERE PRO_UID='<process id>' AND TAS_START='TRUE'")
What API call do I make that does the same as this?

many thanks
#785089
Hi,
REST service api light
get user start-case:
endpoint = {example.com}/api/1.0/{workspace}/light/start-case
return a list of process information and task id:
Code: Select all
[{
"text":"Process name (task name)",
"processId":"00000000000000000000000000000000",
"taskId":"00000000000000000000000000000000",
"forms":[
	{"formId":"00000000000000000000000000000000",
	"index":1,
	"title":"form title",
	"description":"",
	"stepId":"00000000000000000000000000000000",
	"stepUidObj":"00000000000000000000000000000000",
	"stepMode":"EDIT",
	"stepPosition":1,
	"triggers":{
		"before":false,
		"after":false}
		}
	]
}]

⇒ Product Review : CogniCare ⇒ Results: […]

⇒ Product Review : CogniCare ⇒ Results: […]

⇒ Product Review : CogniCare ⇒ Results: […]

⇒ Product Review : CogniCare ⇒ Results: […]