Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Fri, 4 Apr 2008 12:23:46 +0100,    group: microsoft.public.exchange.development        back       


PR_EFORMS_LOCALE_ID   
Hello,

I've now managed to create an Organizational Forms Library programatically 
by using the powershell SDK stuff, but I can't use it until I set the 
PR_EFORMS_LOCALE_ID value as described in 
http://support.microsoft.com/kb/933358.
Using MFCMapi works fine, but I've been tasked with doing this bit from code 
as well (basically we want a click-and-go solution for people to use...)

I've tried connecting via EXOLEDB (code below) and can see a load of fields, 
but these all look different to the ones I have in MFCMapi, so I guess I'm 
looking at the wrong way of doing this.

Any ideas?



            String strFldrURL = "http://" + _servername + 
"/public/NON_IPM_SUBTREE/EFORMS REGISTRY/";

            ADODB.Connection cnnFldr;
            ADODB.Recordset recAppFldr;

            // Initialize the connection.
            cnnFldr = new ADODB.Connection();

            // Initialize the record object.
            recAppFldr = new ADODB.Recordset();

            try
            {
                // Open the folder connection.
                cnnFldr = new ADODB.ConnectionClass();
                cnnFldr.Provider = "EXOLEDB.DATASOURCE";
                cnnFldr.Open(strFldrURL, _username, _password, 0);

                // Open the folder record.
                recAppFldr.Open(strFldrURL, cnnFldr, 
ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockOptimistic, 
512);
                recAppFldr.MoveFirst();
                String OutPut = "";

                foreach (ADODB.Field _field in recAppFldr.Fields)
                {
                    OutPut = OutPut + _field.Name + ": " + _field.Value + 
"\r\n";
                }
                Clipboard.SetText(OutPut);
....

The clipboard then contains the below...

DAV:nosubs: False
DAV:contentclass: urn:content-classes:folder
DAV:isroot:
http://schemas.microsoft.com/exchange/outlookfolderclass:
DAV:supportedlock: System.Object[]
http://schemas.microsoft.com/exchange/contentstate:
DAV:searchrequest:
DAV:defaultdocument:
DAV:abstract:
http://schemas.microsoft.com/exchange/permanenturl: 
http://localhost/public/-FlatUrlSpace-/28bd8f3880cef44e9754f9d861a94267-1286b3f7ae
http://schemas.microsoft.com/exchange/deleteditemsagelimit:
DAV:getcontenttype:
DAV:id: AQEAABKGs/euAAAAAAAAAAAAAAAA
http://schemas.microsoft.com/exchange/mid: -6122445205489582079
DAV:isfolder: True
DAV:lastaccessed:
DAV:resourcetype: DAV:collection
DAV:getetag:
DAV:lockdiscovery: <lockdiscovery xmlns="DAV:"></lockdiscovery>
http://schemas.microsoft.com/exchange/foldersize: 0
http://schemas.microsoft.com/exchange/outlookmessageclass: IPM.Post
DAV:creationdate: 04/04/2008 09:40:02
http://schemas.microsoft.com/exchange/ntsecuritydescriptor: System.Byte[]
urn:schemas-microsoft-com:exch-data:baseschema:
http://schemas.microsoft.com/exchange/replicationmessagepriority:
urn:schemas-microsoft-com:office:office#Keywords:
http://schemas.microsoft.com/exchange/replicationstyle: -1
urn:schemas-microsoft-com:exch-data:expected-content-class:
DAV:getcontentlanguage:
DAV:ishidden: False
http://schemas.microsoft.com/exchange/publicfolderemailaddress:
DAV:parentname: http://localhost/public/NON_IPM_SUBTREE/EFORMS%20REGISTRY
http://schemas.microsoft.com/exchange/noaging:
http://schemas.microsoft.com/exchange/schemaversion:
DAV:getcontentlength: 0
http://schemas.microsoft.com/repl/contenttag: 04/04/2008 09:40:02
DAV:objectcount: 0
DAV:isstructureddocument: False
http://schemas.microsoft.com/repl/repl-uid: 
rid:28bd8f3880cef44e9754f9d861a94267001286b408ab
DAV:comment:
DAV:haschildren: False
DAV:displayname: Organizational Forms Library
DAV:href: 
http://localhost/public/NON_IPM_SUBTREE/EFORMS%20REGISTRY/Organizational%20Forms%20Library
DAV:searchtype:
DAV:isreadonly: False
DAV:uid: AQEAABKGs/euAAAAAAAAAAAAAAAA
http://schemas.microsoft.com/exchange/disallowmdbwideexpiry:
DAV:visiblecount: 0
http://schemas.microsoft.com/exchange/contentexpiryagelimit:
DAV:getlastmodified: 04/04/2008 09:40:02
DAV:hassubs: False
http://schemas.microsoft.com/exchange/folderproxy:
urn:schemas:httpmail:expiry-date:
http://schemas.microsoft.com/exchange/replicationschedule: System.Byte[]
urn:schemas:httpmail:unreadcount: 0
urn:schemas-microsoft-com:exch-data:schema-collection-ref:
DAV:iscollection: True
DAV:childcount: 0
urn:schemas:httpmail:read:
http://schemas.microsoft.com/repl/resourcetag: 
rt:28bd8f3880cef44e9754f9d861a94267001286b408ab28bd8f3880cef44e9754f9d861a94267001286b418ac
http://schemas.microsoft.com/exchange/adminfolderdescription:
date: Fri, 4 Apr 2008 12:23:46 +0100   author:   JamesB

Re: PR_EFORMS_LOCALE_ID   
As an aside, I created the PR_EFORMS_LOCALE_ID in MFCMapi to see any 
differences in the fields. The last but one entry differs slightly - is this 
relevant?

Old Value:
http://schemas.microsoft.com/repl/resourcetag:
rt:28bd8f3880cef44e9754f9d861a94267001286b408ab28bd8f3880cef44e9754f9d861a94267001286b418ac

New Value:
http://schemas.microsoft.com/repl/resourcetag:
rt:28bd8f3880cef44e9754f9d861a94267001286b408ab28bd8f3880cef44e9754f9d861a942670012872c82e1


"JamesB"  wrote in message 
news:47f60f80$0$32051$da0feed9@news.zen.co.uk...
> Hello,
>
> I've now managed to create an Organizational Forms Library programatically 
> by using the powershell SDK stuff, but I can't use it until I set the 
> PR_EFORMS_LOCALE_ID value as described in 
> http://support.microsoft.com/kb/933358.
> Using MFCMapi works fine, but I've been tasked with doing this bit from 
> code as well (basically we want a click-and-go solution for people to 
> use...)
>
> I've tried connecting via EXOLEDB (code below) and can see a load of 
> fields, but these all look different to the ones I have in MFCMapi, so I 
> guess I'm looking at the wrong way of doing this.
>
> Any ideas?
>
>
>
>            String strFldrURL = "http://" + _servername + 
> "/public/NON_IPM_SUBTREE/EFORMS REGISTRY/";
>
>            ADODB.Connection cnnFldr;
>            ADODB.Recordset recAppFldr;
>
>            // Initialize the connection.
>            cnnFldr = new ADODB.Connection();
>
>            // Initialize the record object.
>            recAppFldr = new ADODB.Recordset();
>
>            try
>            {
>                // Open the folder connection.
>                cnnFldr = new ADODB.ConnectionClass();
>                cnnFldr.Provider = "EXOLEDB.DATASOURCE";
>                cnnFldr.Open(strFldrURL, _username, _password, 0);
>
>                // Open the folder record.
>                recAppFldr.Open(strFldrURL, cnnFldr, 
> ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockOptimistic, 
> 512);
>                recAppFldr.MoveFirst();
>                String OutPut = "";
>
>                foreach (ADODB.Field _field in recAppFldr.Fields)
>                {
>                    OutPut = OutPut + _field.Name + ": " + _field.Value + 
> "\r\n";
>                }
>                Clipboard.SetText(OutPut);
> ....
>
> The clipboard then contains the below...
>
> DAV:nosubs: False
> DAV:contentclass: urn:content-classes:folder
> DAV:isroot:
> http://schemas.microsoft.com/exchange/outlookfolderclass:
> DAV:supportedlock: System.Object[]
> http://schemas.microsoft.com/exchange/contentstate:
> DAV:searchrequest:
> DAV:defaultdocument:
> DAV:abstract:
> http://schemas.microsoft.com/exchange/permanenturl: 
> http://localhost/public/-FlatUrlSpace-/28bd8f3880cef44e9754f9d861a94267-1286b3f7ae
> http://schemas.microsoft.com/exchange/deleteditemsagelimit:
> DAV:getcontenttype:
> DAV:id: AQEAABKGs/euAAAAAAAAAAAAAAAA
> http://schemas.microsoft.com/exchange/mid: -6122445205489582079
> DAV:isfolder: True
> DAV:lastaccessed:
> DAV:resourcetype: DAV:collection
> DAV:getetag:
> DAV:lockdiscovery: <lockdiscovery xmlns="DAV:"></lockdiscovery>
> http://schemas.microsoft.com/exchange/foldersize: 0
> http://schemas.microsoft.com/exchange/outlookmessageclass: IPM.Post
> DAV:creationdate: 04/04/2008 09:40:02
> http://schemas.microsoft.com/exchange/ntsecuritydescriptor: System.Byte[]
> urn:schemas-microsoft-com:exch-data:baseschema:
> http://schemas.microsoft.com/exchange/replicationmessagepriority:
> urn:schemas-microsoft-com:office:office#Keywords:
> http://schemas.microsoft.com/exchange/replicationstyle: -1
> urn:schemas-microsoft-com:exch-data:expected-content-class:
> DAV:getcontentlanguage:
> DAV:ishidden: False
> http://schemas.microsoft.com/exchange/publicfolderemailaddress:
> DAV:parentname: http://localhost/public/NON_IPM_SUBTREE/EFORMS%20REGISTRY
> http://schemas.microsoft.com/exchange/noaging:
> http://schemas.microsoft.com/exchange/schemaversion:
> DAV:getcontentlength: 0
> http://schemas.microsoft.com/repl/contenttag: 04/04/2008 09:40:02
> DAV:objectcount: 0
> DAV:isstructureddocument: False
> http://schemas.microsoft.com/repl/repl-uid: 
> rid:28bd8f3880cef44e9754f9d861a94267001286b408ab
> DAV:comment:
> DAV:haschildren: False
> DAV:displayname: Organizational Forms Library
> DAV:href: 
> http://localhost/public/NON_IPM_SUBTREE/EFORMS%20REGISTRY/Organizational%20Forms%20Library
> DAV:searchtype:
> DAV:isreadonly: False
> DAV:uid: AQEAABKGs/euAAAAAAAAAAAAAAAA
> http://schemas.microsoft.com/exchange/disallowmdbwideexpiry:
> DAV:visiblecount: 0
> http://schemas.microsoft.com/exchange/contentexpiryagelimit:
> DAV:getlastmodified: 04/04/2008 09:40:02
> DAV:hassubs: False
> http://schemas.microsoft.com/exchange/folderproxy:
> urn:schemas:httpmail:expiry-date:
> http://schemas.microsoft.com/exchange/replicationschedule: System.Byte[]
> urn:schemas:httpmail:unreadcount: 0
> urn:schemas-microsoft-com:exch-data:schema-collection-ref:
> DAV:iscollection: True
> DAV:childcount: 0
> urn:schemas:httpmail:read:
> http://schemas.microsoft.com/repl/resourcetag: 
> rt:28bd8f3880cef44e9754f9d861a94267001286b408ab28bd8f3880cef44e9754f9d861a94267001286b418ac
> http://schemas.microsoft.com/exchange/adminfolderdescription:
>
>
>
date: Fri, 4 Apr 2008 12:38:20 +0100   author:   JamesB

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us