Mike's PBX Cookbook

Import Multiple Users

Unity's Bulk Administration Tool (BAT) can import a text file with comma-separated values (CSV) to create multiple mailboxes at once. This is extremely handy if upgrading from another Voicemail system, such as CallPilot. How easy this is depends on your Excel/Numbers and Copy/Paste dexterity, but it's worth spending some time on it, as a bulk import is huge time saver when it works!

Get some Data!

The source could be an extension list, or an export from another system. Name & extension is enough to start with. Fields must be plain text, and comma separated which may require some preliminary work in a text editor. Open the CSV file in Excel or Numbers, and make sure it looks good, with the correct data in the correct columns.

Eg, mailbox users exported from CallPilot, opened in Excel or Numbers:

139573957SellersPeterRegular UserLocal User1
244974497WalkerMikeRegular UserLocal User1
332573257HuntClaireRegular UserLocal User1
437573757BrownPeterRegular UserLocal User1
530733073JohnsonClaireRegular UserLocal User1
647524752SellersRyanRegular UserLocal User1

Converting:

At a bare minimum, Unity requires 7 fields:

AliasDisplayNameFirstNameLastNameTemplateAliasMailboxListInDirectory

Therefore, we need to edit the columns and fields to look something like the following...
With some column duplication, fill down, and 'Find & Replace', this actually isn't too hard!

AliasDisplayNameFirstNameLastNameTemplateAliasMailboxListInDirectory
PeterSellersPeter SellersPeterSellersVoiceMailUserTemplate39571
MikeWalkerMike WalkerMikeWalkerVoiceMailUserTemplate44971
ClaireHuntClaire HuntClaireHuntVoiceMailUserTemplate32571
PeterBrownPeter BrownPeterBrownVoiceMailUserTemplate37571
ClaireJohnsonClaire JohnsonClaireJohnsonVoiceMailUserTemplate30731
RyanSellersRyan SellersRyanSellersVoiceMailUserTemplate47521

Export the final table as a CSV (comma separated values) file: File ➤ Export to ➤ CSV...

It should then look as follows when opened in a text editor, where any final tweaking can be done (if necessary).
Ensure that the first row contains the column headings, these are the minimum headings required for Unity Mail:

Alias,DisplayName,FirstName,LastName,TemplateAlias,Extension,ListInDirectory
PeterSellers,Peter Sellers,Peter,Sellers,VoiceMailUserTemplate,3957,1
MikeWalker,Mike Walker,Mike,Walker,VoiceMailUserTemplate,4497,1
ClaireHunt,Claire Hunt,Claire,Hunt,VoiceMailUserTemplate,3257,1
PeterBrown,Peter Brown,Peter,Brown,VoiceMailUserTemplate,3757,1
ClaireJohnson,Claire Johnson,Claire,Johnson,VoiceMailUserTemplate,3073,1
RyanSellers,Ryan Sellers,Ryan,Sellers,VoiceMailUserTemplate,4752,1

Note that Numbers will separate values with Semi-colons if the decimal separator is a comma (eg, in Europe).
This can be fixed by changing your Region to UK/US in System Preferences, or with 'Find & Replace' in the text editor.

Importing:

In Unity, from the left menu select: Tools ➤ Bulk Administration Tool, choose your CSV file, and click Submit batmb.png

If an import fails, open the the ''failed objects report file' by clicking the link. Make the necessary changes, and try again.

Rules:

* Works without quotes in Unity, but may cause problems interacting with external servers, so be aware.