Closing case by uploading xml file

Hi,

Basically, I want to close the case assigned to a owner, through uploading
an xml file.

How do i do that?

If the following can be used. Please correct me.

<?xml version="1.0" ?>


<num_people>1</num_people>

<n0:case case_id="a6643da2-7ddd-427d-943c-2b3745cae2c4"
date_modified=“2013-09-23” user_id="f06cd1978d1db3d173d2aabfe7f9140d"
xmlns:n0=“http://commcarehq.org/case/transaction/v2”>
n0:create
n0:case_typeperson</n0:case_type>
n0:owner_idf06cd1978d1db3d173d2aabfe7f9140d</n0:owner_id>
</n0:create>
n0:update
</n0:update>
n0:close
</n0:close>
</n0:case>

<n1:meta xmlns:n1=“http://openrosa.org/jr/xforms”>
n1:userIDf06cd1978d1db3d173d2aabfe7f9140d</n1:userID>
n1:instanceID2729386f-7fd2-42cc-807f-786bf2dc952b</n1:instanceID>
</n1:meta>

Please correct me if there is any error in syntax

··· On Tuesday, September 24, 2013 10:29:33 AM UTC+5:30, Koneti Chandu wrote: > > Hi, > > Basically, I want to close the case assigned to a owner, through uploading > an xml file. > > How do i do that? > > If the following can be used. Please correct me. > > <?xml version="1.0" ?> > > 1 > > date_modified="2013-09-23" user_id="f06cd1978d1db3d173d2aabfe7f9140d" > xmlns:n0="http://commcarehq.org/case/transaction/v2"> > > person > f06cd1978d1db3d173d2aabfe7f9140d > > > > > > > > > f06cd1978d1db3d173d2aabfe7f9140d > 2729386f-7fd2-42cc-807f-786bf2dc952b > > >

Are you trying to close an existing case or create and close a case in a
single form?

If you want to close an existing case you should remove the block
(and the empty is also not necessary).

··· On Tue, Sep 24, 2013 at 2:07 AM, Koneti Chandu wrote:

Please correct me if there is any error in syntax

On Tuesday, September 24, 2013 10:29:33 AM UTC+5:30, Koneti Chandu wrote:

Hi,

Basically, I want to close the case assigned to a owner, through
uploading an xml file.

How do i do that?

If the following can be used. Please correct me.

<?xml version="1.0" ?>


<num_people>1</num_people>

<n0:case case_id="a6643da2-7ddd-427d-**943c-2b3745cae2c4"
date_modified=“2013-09-23” user_id="f06cd1978d1db3d173d2aabfe7f9140d"
xmlns:n0=“http://commcarehq.**org/case/transaction/v2http://commcarehq.org/case/transaction/v2
”>
n0:create
n0:case_typeperson</n0:case_**type>
n0:owner_idf06cd1978d1db3d173d2aabfe7f9140d</n0:owner_id>
</n0:create>
n0:update
</n0:update>
n0:close
</n0:close>
</n0:case>

<n1:meta xmlns:n1=“http://openrosa.org/**jr/xformshttp://openrosa.org/jr/xforms
”>
n1:userIDf06cd1978d1db3d173d2aabfe7f9140d</n1:userID>
n1:instanceID2729386f-7fd2-**42cc-807f-786bf2dc952b</n1:**instanceID>
</n1:meta>


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/groups/opt_out.