Joe Richards [MVP]
Guest
|
Posted:
Wed Sep 21, 2005 4:59 pm Post subject:
Re: Q: IFolder Interface, Fields property, can you get the f |
|
|
Ah found the info...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/34af5e8e-6367-4e57-aee5-0b54160573bc.asp
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/d2a8f0f0-7fb2-4c11-86ed-4ab46138a487.asp
The fields don't have names, only IDs.
for i=1 to arg.fields.count
set field=arg.fields.item(i)
wscript.echo " " & i & "] (0x" & hex(field.ID) _
& ") (" & field.name & ") " & field
next
1] (0xE080003) () 1883
2] (0xE230003) () 1134
3] (0xE270102) ()
08000300000000000100048C44000000540000000000000014000000020030000200000001191400BF0F1F0001010000000000050700000001121400BFC91F000101000000000005070000000
0200000000000520000000200200000105000000000005150000008691066F6B10EBEE3778038301020000
4] (0xE580102) () 0105000000000005150000008691066F6B10EBEE3778038357040000
5] (0xE590102) () 0105000000000005150000008691066F6B10EBEE3778038357040000
6] (0xFF40003) () 63
7] (0x10F4000B) () False
8] (0x10F5000B) () False
9] (0x10F6000B) () False
10] (0x3001001E) () TestFolder1
11] (0x3004001E) ()
12] (0x30070040) () 9/19/2005 3:52:32 PM
13] (0x30080040) () 9/19/2005 3:52:32 PM
14] (0x36010003) () 1
15] (0x36020003) () 2
16] (0x36030003) () 2
17] (0x360A000B) () True
18] (0x3613001E) () IPF.Note
19] (0x36170003) () 0
20] (0x3FD60040) () 9/19/2005 3:52:32 PM
21] (0x3FE00102) () 00
22] (0x3FE10102) () 0200000000E4040000
23] (0x3FE4000B) () False
24] (0x3FE5000B) () False
25] (0x3FE70003) () 0
26] (0x3FFE0102) () 00000000010000000400000000000000
27] (0x65E00102) () 4514CBA1FF678248BF86CB417A58BCC000000002BB5D
28] (0x65E10102) () 4514CBA1FF678248BF86CB417A58BCC0000000008449
29] (0x65E20102) () 4514CBA1FF678248BF86CB417A58BCC000000002BCA5
30] (0x65E30102) () 164514CBA1FF678248BF86CB417A58BCC000000002BCA5
31] (0x66380003) () 1
32] (0x66390003) () 2043
33] (0x663A000B) () False
34] (0x66400003) () 0
35] (0x66410003) () 0
36] (0x66430003) () 0
37] (0x66550102) ()
4514CBA1FF678248BF86CB417A58BCC0000000008F414514CBA1FF678248BF86CB417A58BCC000000002BCA6
38] (0x669B0014) () 0
39] (0x669C0014) () 0
40] (0x669D0014) () 0
41] (0x6707001E) () /Inbox/TestFolder1
42] (0x67090040) () 9/19/2005 3:52:32 PM
43] (0x670A0040) () 9/20/2005 2:31:44 PM
44] (0x670B0003) () 0
45] (0xE090102) ()
000000001E38C33970B8F54CB31E05570B6DE3D001004514CBA1FF678248BF86CB417A58BCC00000000084490000
46] (0xFFE0003) () 3
47] (0x340D0003) () 344061
48] (0xFF80102) () 4514CBA1FF678248BF86CB417A58BCC0
49] (0xFFF0102) ()
000000001E38C33970B8F54CB31E05570B6DE3D001004514CBA1FF678248BF86CB417A58BCC000000002BB5D0000
50] (0xFF90102) ()
000000001E38C33970B8F54CB31E05570B6DE3D001004514CBA1FF678248BF86CB417A58BCC000000002BB5D0000
51] (0x300B0102) ()
000000001E38C33970B8F54CB31E05570B6DE3D001004514CBA1FF678248BF86CB417A58BCC000000002BB5D0000
52] (0x34140102) () 5494A1C0297F101BA58708002B2A2517
53] (0xFFB0102) ()
0000000038A1BB1005E5101AA1BB08002B2A56C20000454D534D44422E444C4C00000000000000001B55FA20AA6611CD9BC800AA002FC45A0C000000324B334558433031002F6F3D6A6F6577
172652F6F753D46697273742041646D696E6973747261746976652047726F75702F636E3D526563697069656E74732F636E3D6C6973746D61696C00D83521F3890000000100000014000000650000002F6F3D6A6F6577617265
F6F753D46697273742041646D696E6973747261746976652047726F75702F636E3D436F6E66696775726174696F6E2F636E3D536572766572732F636E3D324B3345584330310032006B003300650078006300300031002E006A
06F0065002E0063006F006D0000000000
54] (0xFFA0102) () 1E38C33970B8F54CB31E05570B6DE3D0
55] (0x39000003) () 16777216
56] (0x6644001E) () 2K3EXC01
57] (0x6656001E) () 2k3exc01.joe.com
58] (0x664B0014) () 8.34413540890433E-309
59] (0xFF70003) () 1
60] (0x663D0003) () 0
--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net
Joe Richards [MVP] wrote:
| Quote: | When looping through a rule, one of the things that can be returned in
an ACTION is a folder which maps to the IFolder interface. One of the
properties of that interface is fields.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_cdo_ifolder_interface.asp
How do you determine what the name of each field is? The arrays are not
always in order nor do they always have the same number of elements.
RULE NAME : "TEST RULE 1 : NestInto"
Read-Only: FALSE
Index : 2
Sequence : 11
Level : 0
Provider : RuleOrganizer
State : 1
CONDITION INFORMATION
Condition Type: ICommentCondition
Count: 4
Tag : _UNKNOWN_ (0x60000003)
Value: 1
Tag : _UNKNOWN_ (0x10102)
Value:
00000000DCA740C8C042101AB4B908002B2FE18201000000010000002F6F3D6A6F65776172652F6F753D46697273742041646D696E6973747261746976652047726F75702F636E3D526563697069656E7
4732F636E3D4E657374496E746F00
Tag : DISPLAYNAME (0x1001E)
Value: NestInto
Tag : DISPLAYTYPE (0x39000003)
Value: 1
ACTION INFORMATION
ACTIONS: IActions
ActionType: ACTION_MOVE (1)
ARG TypeName: Folder
Field Count : 60
1] 0
2] 1134
3]
08000300000000000100048C44000000540000000000000014000000020030000200000001191400BF0F1F0001010000000000050700000001121400BFC91F000101000000000005070000000102000000000005
20000000200200000105000000000005150000008691066F6B10EBEE3778038301020000
4] 0105000000000005150000008691066F6B10EBEE3778038357040000
5] 0105000000000005150000008691066F6B10EBEE3778038357040000
6] 63
7] False
8] False
9] False
10] TestFolder1
11]
12] 9/19/2005 3:52:32 PM
13] 9/19/2005 3:52:32 PM
14] 1
15] 0
16] 0
17] True
18] IPF.Note
19] 0
20] 9/19/2005 3:52:32 PM
21] 00
22] 0200000000E4040000
23] False
24] False
25] 0
26] 00000000010000000400000000000000
27] 4514CBA1FF678248BF86CB417A58BCC000000002BB5D
28] 4514CBA1FF678248BF86CB417A58BCC0000000008449
29] 4514CBA1FF678248BF86CB417A58BCC000000002BCA5
30] 164514CBA1FF678248BF86CB417A58BCC000000002BCA5
31] 1
32] 2043
33] False
34] 0
35] 0
36] 0
37]
4514CBA1FF678248BF86CB417A58BCC0000000008F414514CBA1FF678248BF86CB417A58BCC000000002BCA6
38] 0
39] 0
40] 0
41] /Inbox/TestFolder1
42] 9/19/2005 3:52:32 PM
43] 9/20/2005 9:57:56 AM
44] 0
45]
000000001E38C33970B8F54CB31E05570B6DE3D001004514CBA1FF678248BF86CB417A58BCC00000000084490000
46] 3
47] 344061
48] 4514CBA1FF678248BF86CB417A58BCC0
49]
000000001E38C33970B8F54CB31E05570B6DE3D001004514CBA1FF678248BF86CB417A58BCC000000002BB5D0000
50]
000000001E38C33970B8F54CB31E05570B6DE3D001004514CBA1FF678248BF86CB417A58BCC000000002BB5D0000
51]
000000001E38C33970B8F54CB31E05570B6DE3D001004514CBA1FF678248BF86CB417A58BCC000000002BB5D0000
52] 5494A1C0297F101BA58708002B2A2517
53]
0000000038A1BB1005E5101AA1BB08002B2A56C20000454D534D44422E444C4C00000000000000001B55FA20AA6611CD9BC800AA002FC45A0C000000324B334558433031002F6F3D6A6F65776172652F6F753D4
6697273742041646D696E6973747261746976652047726F75702F636E3D526563697069656E74732F636E3D6C6973746D61696C00D83521F3890000000100000014000000650000002F6F3D6A6F65776172652F6F753D4669727
3742041646D696E6973747261746976652047726F75702F636E3D436F6E66696775726174696F6E2F636E3D536572766572732F636E3D324B3345584330310032006B003300650078006300300031002E006A006F0065002E006
3006F006D0000000000
54] 1E38C33970B8F54CB31E05570B6DE3D0
55] 16777216
56] 2K3EXC01
57] 2k3exc01.joe.com
58] 8.34413540890433E-309
59] 1
60] 0
--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net |
|
|