Form XML and version numbers

14 views
Skip to first unread message

jol...@nd.edu

unread,
Apr 7, 2016, 12:56:45 PM4/7/16
to commcare-users
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!

Cory Zue

unread,
Apr 8, 2016, 3:22:39 AM4/8/16
to commcar...@googlegroups.com
Hey,

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


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, <jol...@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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jared Olson

unread,
Apr 8, 2016, 1:45:47 PM4/8/16
to commcar...@googlegroups.com
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

--
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-user...@googlegroups.com.

Cory Zue

unread,
Apr 10, 2016, 4:22:44 AM4/10/16
to commcar...@googlegroups.com
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

Jared Olson

unread,
Apr 18, 2016, 3:11:26 PM4/18/16
to commcar...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages