dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #51125
Re: Importing Organisation Units with groups
Thanks Knut, this works for me too.
Much appreciated.
On Fri, Apr 27, 2018 at 3:17 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
> Hello Leke,
>
> I just did it now and my guess was right. As usual, the first row will be
> ignored, so you should have something like this (assigning 3 orgunits to
> the same group):
>
> Group,OU
> VlEZ3JbCBEp,kw32DaDxwk9
> VlEZ3JbCBEp,xEuwGp9HvZg
> VlEZ3JbCBEp,VvvUrFGaoL3
>
> (It appears you will have to use UIDs like in my example, I don't think it
> will match on Code or Name).
>
> On Fri, Apr 27, 2018 at 3:55 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
>
>> Hi again,
>>
>> You are right, sorry. It seems the manual is deficient on this point. My
>> assumption is that the CSV format would be just: GroupUID, OrgUnitUID (or
>> possibly the reverse order).
>>
>> Unless anyone else knows better, perhaps you could give it a try with
>> just one group and a couple of orgunits?
>>
>> Knut
>>
>> On Fri, Apr 27, 2018 at 3:43 PM, Olaleke Seweje <sewejeolaleke@xxxxxxxxx>
>> wrote:
>>
>>> Thanks Knut,
>>>
>>> I have been to this link before too but it does not show how to connect
>>> the org units with groups.
>>> For example, an org unit ABC Hospital in org unit D.
>>> I have so many org units and linking them manually to groups will take a
>>> lot of effort and time.
>>>
>>> I hope you can give me more info on this.
>>>
>>> Thanks.
>>>
>>>
>>>
>>> On Fri, Apr 27, 2018 at 12:49 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
>>>
>>>> Hi Leke,
>>>>
>>>> You can find the format here:
>>>>
>>>> https://docs.dhis2.org/2.26/en/developer/html/webapi_csv_met
>>>> adata_import.html#webapi_csv_other_objects
>>>>
>>>> On Fri, Apr 27, 2018 at 12:58 PM, Olaleke Seweje <
>>>> sewejeolaleke@xxxxxxxxx> wrote:
>>>>
>>>>> Hi all,
>>>>> I am trying to import hundreds of org units with their groups.
>>>>>
>>>>> Is there a CSV config sheet format that can be used for this?
>>>>>
>>>>> Maybe I'd need to use 'Organisation unit with group option' on the CSV
>>>>> import page but I need the format of the config sheet. If so, can someone
>>>>> please share the config sheet for doing this?
>>>>>
>>>>> If not, please share with me info on how I can automate importing org
>>>>> units with groups.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Leke Seweje
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Knut Staring
>>>>
>>>> Department of Information, Evidence and Research
>>>> World Health Organization, Geneva, Switzerland
>>>> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
>>>> Skype: knutstar
>>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>> Leke Seweje
>>>
>>
>>
>>
>> --
>> Knut Staring
>>
>> Department of Information, Evidence and Research
>> World Health Organization, Geneva, Switzerland
>> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
>> Skype: knutstar
>>
>
>
>
> --
> Knut Staring
>
> Department of Information, Evidence and Research
> World Health Organization, Geneva, Switzerland
> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
> Skype: knutstar
>
--
Regards,
Leke Seweje
References