Application parameter in commcare-export command

Hi,

Can we pass application name, module name in commcare-export command while
exporting data from commacre to MySQL database.
I mean, is there any --application, --module like parameters exists in
commcare-export command.

If so, how to pass them?

··· -- Ajay

Hi Ajay,

The commcare-export command doesn't have any command-line params
specifically for filtering by application or module, but you can do many
different types of filtering using the the .json or .xlsx query file. While
I don't think you can specifically filter by module, there are some good
examples for filtering by form

> demo-registrations.xlsx

https://confluence.dimagi.com/download/attachments/12879516/demo-registrations.xlsx?version=1&modificationDate=1364497963464&api=v2

You will need to know the form's xmlns. To filter by a module, you will
need to look up the xmlns of each form in that module.
To filter by a whole app, you may be able to filter by "app_id" under Filter
Name
, but I'm less sure of this. Let us know if that works.

I hope that points you in the right direction.

Cheers,
Danny

··· On Tue, Jan 3, 2017 at 2:05 PM, Ajay Singh wrote:

Hi,

Can we pass application name, module name in commcare-export command while
exporting data from commacre to MySQL database.
I mean, is there any --application, --module like parameters exists in
commcare-export command.

If so, how to pass them?

--
Ajay

--


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.

Thanks Danny.

··· -- Thanks, *Ajay Singh* *Corporate** Renaissance **Group* Cell (India): +91-9711628763​ Email: ajay.singh@crgoup.co.in

[image: CR Group] http://www.crgroup.com/[image: Rapid-Fire Business
Intelligence & Analytics] http://www.tableau.com/

On Wed, Jan 4, 2017 at 1:22 AM, Danny Roberts droberts@dimagi.com wrote:

Hi Ajay,

The commcare-export command doesn't have any command-line params
specifically for filtering by application or module, but you can do many
different types of filtering using the the .json or .xlsx query file. While
I don't think you can specifically filter by module, there are some good
examples for filtering by form

You will need to know the form's xmlns. To filter by a module, you will
need to look up the xmlns of each form in that module.
To filter by a whole app, you may be able to filter by "app_id" under Filter
Name
, but I'm less sure of this. Let us know if that works.

I hope that points you in the right direction.

Cheers,
Danny

On Tue, Jan 3, 2017 at 2:05 PM, Ajay Singh ajay.singh@crgroup.co.in wrote:

Hi,

Can we pass application name, module name in commcare-export command
while exporting data from commacre to MySQL database.
I mean, is there any --application, --module like parameters exists in
commcare-export command.

If so, how to pass them?

--
Ajay

--


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 a topic in the
Google Groups "CommCare Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/commcare-developers/WzmuvDarC0g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.