How to retrive Process Definition ID and form ID for using Tasklist API "getForm"

Hi Team,

I am using the Tasklist API “http:///swagger-ui/index.html#/Form/getForm”, where I need to pass the formID and ProcessDefinition Key for getting the Form Details.
I am unable to figure out from where can I identify these 2.
Could you share me some thoughts on this.

Thanks,
Saju

Hi @Saju_John_Sebastian1 - you can retrieve the process definition key from Operate (API docs). The form ID, I believe, is retrieved when you fetch tasks from the Tasklist API.

I admit, I am not sure what other ways there are. I will ask our engineers and let you know what I find out!

hi,

It would be nice if this could be done easier (make it visible in operate for example) but I have two ways to get the process def id:

  1. use the web developer tools and look at the network traffic and get it from one of the calls
  2. create a report with raw data in optimize

regards,

Maarten

Thanks for the feedback @MaartenvV, and I agree with it! I will share this feedback with our products team.

1 Like

You can obtain the formID and the ProcessDefinition key through the /v1/tasks/search endpoint as shown in the image, if you have questions about how to make the tasklis request I wrote an article explaining it step by step, you can take a look Uncomplicating communication via API in Camunda 8 Self-managed using Postman or Insomnia | by Domingos Dias | Mar, 2024 | Medium

. I would like to know if this answer was the solution to your question.