Tutorial : Organizational Forms Library - Series # 2
Can we create it programmatically?
To create it programmatically using MAPI, we need to make use of CreateFolder(), the MAPI function. It is necessary to have very special privileges (obtained by opening the store with an EntryID created using IExchangeManageStore::CreateStoreEntryID()) to get it to work.
Please refer the following KB to create Org. forms library programmatically.
How to create Org. Forms Library in Exchange Server 2003 ?
To create a new Organizational Form in Exchange Server 2003, please follow the steps given below:
1. Start Exchange System Manager.
2. Expand the Organization object. Expand your Administrative Group.
3. Expand Folders. Right-click Public Folders.
4. Click View System Folders.
5. In the list of folders present in the right-hand pane, click the EFORMS Registry folder.
6. Right-click the EFORMS Registry folder, then click New. Click Organizational Form.
7. Enter a name for your Organizational Form, and then click OK.
8. Repeat these steps for multiple forms to create the library.
1) How to create copies of organizational forms library?
In Exchange Server 2003, to create copies of the Organizational Forms Library on other servers, click the Replication tab, and then type the name of server that you want to contain the copy of the Organizational Forms Library.
2) How to set the storage limits for an organizational forms library?
To set storage limits for an Organizational Forms Library, click the Limits tab. To create a description of an Organizational Forms Library, click the Details tab. To set permissions for each user, click the Permissions tab.
How to create Org. Forms Library in Exchange Server 2007 ?
Per the KB, you need to follow the following method to create an Organizational Forms Library as it got changed in Exchange 2007.
To create an Organizational Forms Library in Exchange 2007, follow these steps.
1. Create a new public folder.
a. Click Start, point to All Programs, click Microsoft Exchange Server 2007, and then click Exchange Management Shell.
b. Run the following command at the Exchange Management Shell prompt:
New-PublicFolder -Path "\NON_IPM_SUBTREE\EFORMS REGISTRY" -Name "My Organizational Forms Library"
Note: You can use the Exchange management shell on any version of Exchange 2007 to create a folder. However, in Exchange 2007 SP1, you can also create the EFORMS REGISTRY folder by following these steps:
a. Go to Toolbox in Exchange Management Console. Double-click Public Folder Management Console.
b. In the left pane, click System Public Folders.
c. in the Action pane, click New Public Folder. Type EFORMS REGISTRY as the folder name, and then click NEW.
d. After the folder is created, click Finish to exit the wizard.
2. Add the PR_EFORMS_LOCALE_ID.
a. Use an account that belongs to the Exchange Administrators Group to log on to a client computer that is running Microsoft Office Outlook 2003 or a later version of Microsoft Outlook.
b. Start the Microsoft Exchange Server MAPI Editor (Mfcmapi.exe) from the MFCMAPI folder.
c. Create a MAPI profile if it is necessary.
d. On the Session menu, click Logon and Display Store Table. Select MDB menu, click Open Public Folder Store, and then click OK.
e. Expand Public Root, expand NON_IPM_SUBTREE, and then expand EFORMS REGISTRY.
f. Click the public folder that you created in step 1. For example, click My Organizational Forms Library.
g. Click the PR_URL_NAME property. On the Property Pane menu, click Modify Extra Properties. Click Add, and then click Select Property Tag.
h. Click PR_EFORMS_LOCALE_ID in the list, and then click OK. Click OK two times. A red mark is displayed next to the newly created PR_EFORMS_LOCALE_ID property.
i. Double-click PR_EFORMS_LOCALE_ID. In the Unsigned Decimal box, type the desired locale ID, and then click OK. For example, type 1033 for English, type 1040 for Italian, or type a different ID for a different locale.
Note: To determine the locale ID for other locales, visit the following Microsoft Web site: http://msdn2.microsoft.com/en-us/library/aa579489.aspx (http://msdn2.microsoft.com/en-us/library/aa579489.aspx)
j. Exit MAPI Editor.
3. Configure limits and permissions for the Organizational Forms Library folder. Note: You can use suitable cmdlets in the Exchange Management Shell to set limits and permissions for the Organizational Forms Library folder.
a. To set storage limits, use the following cmdlet: Set-PublicFolder
b. To set permissions for each user, use the following cmdlets: Add-PublicFolderClientPermission, Add-PublicFolderAdministrativePermissions