Incremental Group ID

I am creating groups called “Mother Care Groups”. I would like to assign each group i create a uniqueID. Starting with ‘MCG-001’ and incrementing by 1 each time a new group is created. On the other hand avoiding duplicated ID’s from different Mobile Workers.

My assumption is that each mobile worker will have a unique series of IDs.

thanks.

Hi,

The best way to ensure a lack of overlap in ID’s is to use a combination of the User Case feature to store an incrementing counter per user, and adding a Custom User Data field to the user models with a unique ID assigned to each mobile user that is prefixed to the assigned ID’s.

This will allow each user to create their own list of incrementing ID’s without overlapping the lists created by the other users.

-Clayton

1 Like