cancel
Showing results for 
Search instead for 
Did you mean: 

In the REST API is it possible to find out if a form is attached to a task without a accessing form service

dvk78
Champ in-the-making
Champ in-the-making
Hi,
From the documentation in the user guide, the response for the GET on a task does not seem to indicate if a form is attached to it or not.
It appears that another call is to be made to /form/form-data passing in the taskId to retrieve any form data that might be attached to the task. A 404 on this tells us if no form was defined for the task.
Q : Is this the way to go about determining if a form is attached to a task or not?
Q : Is there a nicer way, by which I can avoid making the 2nd API call?

Suggestion: If there is a flag in the GET of a task response, would it not be handy and avoid the 2nd call.

Regards,
Vinod
2 REPLIES 2

yvoswillens
Champ in-the-making
Champ in-the-making
Hi,

currently form property info is not present in the task REST response.
I can image that for some use cases this would be beneficial.
There are some pros and cons for including form properties. For now we've decided to have 2 separate calls for this.
(The form-key property indicates if an external form is attached)

But your welcome to create a pull request containing your suggestion!

Regards,

Yvo

dvk78
Champ in-the-making
Champ in-the-making
Cool. Thanks for the super quick response Yvo!