API - Custom Form Data Searching
The form type is the id to the corresponding model type.
4 = cases
5 = items
11 = people
0 = all
This will return an array of all case custom forms.
Here is the response for a form we will use for our first search:
Custom Form With Text Field
From the above example, we will be doing a people search within the Person Form Test custom form.
Here is the endpoint we will be using:
The search parameters we will be supplying will be in the body of the post.
Custom Form Text Search
Note - "formId" is the id of the form we are searching.
"name" is the field we are searching in
"model" is the value we are searching for
This returns an array of person records that have "Powdered Sugar" as a value in the Test Text Box of Person Form Test custom form:
Another note in the search body of our POST is the "searchJustForm". If true, this will return all people in the system that have this attached custom form. So making that one change to the body of my post, I will get back the following:
Anything in form result
Now we have 18 records returned, and the value stored for the field does not matter. All person records with the form will be returned.