Get Forms from one Application

Using the CommCare API, how can i get the forms from a specific application?

Regards

Originally Commcare API returns all the forms stored in my Projects. How
can i get the forms related to a specific application?

··· On Tuesday, January 5, 2016 at 12:13:53 PM UTC+2, Hikesh Hasmukh wrote: > > Using the CommCare API, how can i get the forms from a specific > application? > > > Regards >

Hi Hikesh

You can use the Application Structure API
https://wiki.commcarehq.org/display/commcarepublic/Application+Structure+API
to
get the list of forms in an application (along with other information about
the application and forms).

Simon

··· On 5 January 2016 at 12:13, Hikesh Hasmukh wrote:

Using the CommCare API, how can i get the forms from a specific
application?

Regards


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Simon Kelly
Senior Engineer | Dimagi South Africa

Hi Simon

Thanks for the answer, i was looking for a way to filter the forms of one
Application to get only that data.

··· On Tuesday, January 5, 2016 at 3:07:15 PM UTC+2, Simon Kelly wrote: > > Hi Hikesh > > You can use the Application Structure API > to > get the list of forms in an application (along with other information about > the application and forms). > > Simon > > On 5 January 2016 at 12:13, Hikesh Hasmukh <hikesh....@gmail.com > wrote: > >> Using the CommCare API, how can i get the forms from a specific >> application? >> >> >> Regards >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CommCare Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-developers+unsubscribe@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Simon Kelly > Senior Engineer | Dimagi South Africa >

Hi Hikesh,

If you’re referring to the data forwarding aspect (i.e. only get forwarded
data from one application), the way to do it is to include the app_id in
the query url and you can then filter the requests that come into your
server. For example, we’d send a request like this:
www.exi.co.mz/?app_id=1234. You can find the setting on the data forwarding
settings:

[image: Inline image 1]

Ben

··· On Wed, Jan 6, 2016 at 1:57 AM, Hikesh Hasmukh wrote:

Hi Simon

Thanks for the answer, i was looking for a way to filter the forms of one
Application to get only that data.

On Tuesday, January 5, 2016 at 3:07:15 PM UTC+2, Simon Kelly wrote:

Hi Hikesh

You can use the Application Structure API
https://wiki.commcarehq.org/display/commcarepublic/Application+Structure+API to
get the list of forms in an application (along with other information about
the application and forms).

Simon

On 5 January 2016 at 12:13, Hikesh Hasmukh hikesh....@gmail.com wrote:

Using the CommCare API, how can i get the forms from a specific
application?

Regards


You received this message because you are subscribed to the Google
Groups “CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Simon Kelly
Senior Engineer | Dimagi South Africa


You received this message because you are subscribed to the Google Groups
“CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Otherwise if you’re talking about strictly getting form data from the HQ
APIs, you can use this api:
https://confluence.dimagi.com/display/commcarepublic/List+Forms. However it
currently doesn’t have functionality to filter by app_id. You’d have to
fetch and then filter by app_id in your program (each form contains the
app_id).

Ben

··· On Wed, Jan 6, 2016 at 9:56 AM, Ben Rudolph wrote:

Hi Hikesh,

If you’re referring to the data forwarding aspect (i.e. only get forwarded
data from one application), the way to do it is to include the app_id in
the query url and you can then filter the requests that come into your
server. For example, we’d send a request like this:
www.exi.co.mz/?app_id=1234. You can find the setting on the data
forwarding settings:

[image: Inline image 1]

Ben

On Wed, Jan 6, 2016 at 1:57 AM, Hikesh Hasmukh hikesh.hasmukh@gmail.com wrote:

Hi Simon

Thanks for the answer, i was looking for a way to filter the forms of one
Application to get only that data.

On Tuesday, January 5, 2016 at 3:07:15 PM UTC+2, Simon Kelly wrote:

Hi Hikesh

You can use the Application Structure API
https://wiki.commcarehq.org/display/commcarepublic/Application+Structure+API to
get the list of forms in an application (along with other information about
the application and forms).

Simon

On 5 January 2016 at 12:13, Hikesh Hasmukh hikesh....@gmail.com wrote:

Using the CommCare API, how can i get the forms from a specific
application?

Regards


You received this message because you are subscribed to the Google
Groups “CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Simon Kelly
Senior Engineer | Dimagi South Africa


You received this message because you are subscribed to the Google Groups
“CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hey,

You can also use the form’s XMLNS to query the form list API (those case be
pulled from the app structure API, or by inspecting the form
source/submissions).

Cory

··· On Wed, Jan 6, 2016 at 10:02 AM, Ben Rudolph wrote:

Otherwise if you’re talking about strictly getting form data from the HQ
APIs, you can use this api:
https://confluence.dimagi.com/display/commcarepublic/List+Forms. However
it currently doesn’t have functionality to filter by app_id. You’d have to
fetch and then filter by app_id in your program (each form contains the
app_id).

Ben

On Wed, Jan 6, 2016 at 9:56 AM, Ben Rudolph brudolph@dimagi.com wrote:

Hi Hikesh,

If you’re referring to the data forwarding aspect (i.e. only get
forwarded data from one application), the way to do it is to include the
app_id in the query url and you can then filter the requests that come into
your server. For example, we’d send a request like this:
www.exi.co.mz/?app_id=1234. You can find the setting on the data
forwarding settings:

[image: Inline image 1]

Ben

On Wed, Jan 6, 2016 at 1:57 AM, Hikesh Hasmukh hikesh.hasmukh@gmail.com wrote:

Hi Simon

Thanks for the answer, i was looking for a way to filter the forms of
one Application to get only that data.

On Tuesday, January 5, 2016 at 3:07:15 PM UTC+2, Simon Kelly wrote:

Hi Hikesh

You can use the Application Structure API
https://wiki.commcarehq.org/display/commcarepublic/Application+Structure+API to
get the list of forms in an application (along with other information about
the application and forms).

Simon

On 5 January 2016 at 12:13, Hikesh Hasmukh hikesh....@gmail.com wrote:

Using the CommCare API, how can i get the forms from a specific
application?

Regards


You received this message because you are subscribed to the Google
Groups “CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Simon Kelly
Senior Engineer | Dimagi South Africa


You received this message because you are subscribed to the Google
Groups “CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.