Form XML and version numbers

Hi there. I’ve used the option to download the form XML for my CommCare
forms in order to back them up in version control. However, I notice that
there doesn’t appear to be any reference in the XML itself to the app
version, which I need. I’ve also tried using the the Application Structure
API and I’ve found the same issue. Is there a way for these download
options to include the application version number? Perhaps I’m missing
something. Thanks!

Hey,

The best way to get the complete forms (including the versions) is to
navigate to the following URL in your browser:

https://www.commcarehq.org/a/[domain]/apps/download/[app id]/

Where domain is your project’s URL and app id is the long string of numbers
and characters you see in the URL when you are editing your app.

thanks,
Cory

··· On Thu, Apr 7, 2016 at 6:56 PM, wrote:

Hi there. I’ve used the option to download the form XML for my CommCare
forms in order to back them up in version control. However, I notice that
there doesn’t appear to be any reference in the XML itself to the app
version, which I need. I’ve also tried using the the Application Structure
API and I’ve found the same issue. Is there a way for these download
options to include the application version number? Perhaps I’m missing
something. Thanks!


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

Hi Cory,

Is this something that can queried using a command line or Python script?
Is there documentation for this tool somewhere that I’m missing? For
various reasons, I need to be able to download the JSON or XML of the whole
application on a regular basis. I plan to save it to a database so I can
access various form questions and answer choices. The Application Structure
API looked to be just what I needed for this purpose, but it doesn’t
include the current version number for the app, which is important for me
to track. (
https://confluence.dimagi.com/display/commcarepublic/Application+Structure+API
)

Do you have any suggestions? Thanks.

··· -- Jared M. Olson Associate Research Programmer Center for Research Computing | University of Notre Dame 574-631-3656 | jolson6@nd.edu

On Fri, Apr 8, 2016 at 3:22 AM, Cory Zue czue@dimagi.com wrote:

Hey,

The best way to get the complete forms (including the versions) is to
navigate to the following URL in your browser:

https://www.commcarehq.org/a/[domain]/apps/download/[app id]/

Where domain is your project’s URL and app id is the long string of
numbers and characters you see in the URL when you are editing your app.

thanks,
Cory

On Thu, Apr 7, 2016 at 6:56 PM, jolson6@nd.edu wrote:

Hi there. I’ve used the option to download the form XML for my CommCare
forms in order to back them up in version control. However, I notice that
there doesn’t appear to be any reference in the XML itself to the app
version, which I need. I’ve also tried using the the Application Structure
API and I’ve found the same issue. Is there a way for these download
options to include the application version number? Perhaps I’m missing
something. Thanks!


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


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/Yr_2oNdYsQg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hey Jared,

I’ve just submitted a change request to add the version parameter to the
API. Once this is accepted and deployed you should be able to use that API
to get the version attribute out. I’m guessing this will happen on Monday
afternoon EST. (I’ve already updated the docs, but it won’t work until the
change is released).

best,
Cory

··· On Fri, Apr 8, 2016 at 7:45 PM, Jared Olson wrote:

Hi Cory,

Is this something that can queried using a command line or Python script?
Is there documentation for this tool somewhere that I’m missing? For
various reasons, I need to be able to download the JSON or XML of the whole
application on a regular basis. I plan to save it to a database so I can
access various form questions and answer choices. The Application Structure
API looked to be just what I needed for this purpose, but it doesn’t
include the current version number for the app, which is important for me
to track. (
https://confluence.dimagi.com/display/commcarepublic/Application+Structure+API
)

Do you have any suggestions? Thanks.


Jared M. Olson
Associate Research Programmer
Center for Research Computing | University of Notre Dame
574-631-3656 | jolson6@nd.edu

On Fri, Apr 8, 2016 at 3:22 AM, Cory Zue czue@dimagi.com wrote:

Hey,

The best way to get the complete forms (including the versions) is to
navigate to the following URL in your browser:

https://www.commcarehq.org/a/[domain]/apps/download/[app id]/

Where domain is your project’s URL and app id is the long string of
numbers and characters you see in the URL when you are editing your app.

thanks,
Cory

On Thu, Apr 7, 2016 at 6:56 PM, jolson6@nd.edu wrote:

Hi there. I’ve used the option to download the form XML for my CommCare
forms in order to back them up in version control. However, I notice that
there doesn’t appear to be any reference in the XML itself to the app
version, which I need. I’ve also tried using the the Application Structure
API and I’ve found the same issue. Is there a way for these download
options to include the application version number? Perhaps I’m missing
something. Thanks!


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


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/Yr_2oNdYsQg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Cory,

Thanks so much for looking into this for me. I appreciate all of your help.

··· -- Jared M. Olson Associate Research Programmer Center for Research Computing | University of Notre Dame 574-631-3656 | jolson6@nd.edu

On Sun, Apr 10, 2016 at 4:22 AM, Cory Zue czue@dimagi.com wrote:

Hey Jared,

I’ve just submitted a change request to add the version parameter to the
API. Once this is accepted and deployed you should be able to use that API
to get the version attribute out. I’m guessing this will happen on Monday
afternoon EST. (I’ve already updated the docs, but it won’t work until the
change is released).

best,
Cory

On Fri, Apr 8, 2016 at 7:45 PM, Jared Olson jolson6@nd.edu wrote:

Hi Cory,

Is this something that can queried using a command line or Python script?
Is there documentation for this tool somewhere that I’m missing? For
various reasons, I need to be able to download the JSON or XML of the whole
application on a regular basis. I plan to save it to a database so I can
access various form questions and answer choices. The Application Structure
API looked to be just what I needed for this purpose, but it doesn’t
include the current version number for the app, which is important for me
to track. (
https://confluence.dimagi.com/display/commcarepublic/Application+Structure+API
)

Do you have any suggestions? Thanks.


Jared M. Olson
Associate Research Programmer
Center for Research Computing | University of Notre Dame
574-631-3656 | jolson6@nd.edu

On Fri, Apr 8, 2016 at 3:22 AM, Cory Zue czue@dimagi.com wrote:

Hey,

The best way to get the complete forms (including the versions) is to
navigate to the following URL in your browser:

https://www.commcarehq.org/a/[domain]/apps/download/[app id]/

Where domain is your project’s URL and app id is the long string of
numbers and characters you see in the URL when you are editing your app.

thanks,
Cory

On Thu, Apr 7, 2016 at 6:56 PM, jolson6@nd.edu wrote:

Hi there. I’ve used the option to download the form XML for my CommCare
forms in order to back them up in version control. However, I notice that
there doesn’t appear to be any reference in the XML itself to the app
version, which I need. I’ve also tried using the the Application Structure
API and I’ve found the same issue. Is there a way for these download
options to include the application version number? Perhaps I’m missing
something. Thanks!


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


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/Yr_2oNdYsQg/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
commcare-users+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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/Yr_2oNdYsQg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.