|
 |
asp_cdo thread: How to create a folder for storing Contacts?
Message #1 by "Dante Tang" <dante.tang@s...> on Fri, 16 Nov 2001 07:59:23
|
|
I would like to create a folder for storing personal Contacts
programmatically. I have got a folder reference and called the Add method.
However, by default, it is a general folder... It is not able to store
Contacts information. How can I specify the content type of my folder?
Any advice or comment are welcome, Thanks a lot in advance.
Dante Tang
Message #2 by "Siegfried Weber" <sweber@c...> on Fri, 16 Nov 2001 17:50:48 +0100
|
|
Try:
Const CdoPR_CONTAINER_CLASS =3D &H3613001E
Set objFolder =3D objFolders.Add
objFolder.Name =3D "My Folder"
objFolder.Update
Set objFields =3D objFolder.Fields
Set objField =3D objFields.Add(CdoPR_CONTAINER_CLASS)
objField.Value =3D "IPF.Contact"
objFolder.Update
<Siegfried />
> -----Original Message-----
> From: Dante Tang [mailto:dante.tang@s...]
> Sent: Friday, November 16, 2001 8:59 AM
> To: ASP CDO
> Subject: [asp_cdo] How to create a folder for storing Contacts?
>
> I would like to create a folder for storing personal Contacts
> programmatically. I have got a folder reference and called the Add
method.
> However, by default, it is a general folder... It is not able to store
> Contacts information. How can I specify the content type of my folder?
>
> Any advice or comment are welcome, Thanks a lot in advance.
>
> Dante Tang
>
$subst('Email.Unsub')
Message #3 by "Dante Tang" <dante.tang@s...> on Wed, 21 Nov 2001 07:04:28
|
|
Um, would you mind telling me what is the function of those =3D? I cannot
find any documentation about it... Thanks
Dante
> Try:
>
> Const CdoPR_CONTAINER_CLASS =3D &H3613001E
> Set objFolder =3D objFolders.Add
> objFolder.Name =3D "My Folder"
> objFolder.Update
> Set objFields =3D objFolder.Fields
> Set objField =3D objFields.Add(CdoPR_CONTAINER_CLASS)
> objField.Value =3D "IPF.Contact"
> objFolder.Update
>
> <Siegfried />
>
> > -----Original Message-----
> > From: Dante Tang [mailto:dante.tang@s...]
> > Sent: Friday, November 16, 2001 8:59 AM
> > To: ASP CDO
> > Subject: [asp_cdo] How to create a folder for storing Contacts?
> >
> > I would like to create a folder for storing personal Contacts
> > programmatically. I have got a folder reference and called the Add
> method.
> > However, by default, it is a general folder... It is not able to store
> > Contacts information. How can I specify the content type of my folder?
> >
> > Any advice or comment are welcome, Thanks a lot in advance.
> >
> > Dante Tang
> >
> $subst('Email.Unsub')
>
Message #4 by "Siegfried Weber" <sweber@c...> on Thu, 22 Nov 2001 02:13:03 +0100
|
|
I'm not sure if I understand what you're asking for. All I used is the
CDO 1.21 object model which offers a .Folders collection object. This
object has a property .Add to add a new folder. The CDO 1.21 help has
plenty of information about those objects.
<Siegfried />
> -----Original Message-----
> From: Dante Tang [mailto:dante.tang@s...]
> Sent: Wednesday, November 21, 2001 8:04 AM
> To: ASP CDO
> Subject: [asp_cdo] RE: How to create a folder for storing Contacts?
>
> Um, would you mind telling me what is the function of those =3D3D? I
cannot
> find any documentation about it... Thanks
>
> Dante
>
> > Try:
> >
> > Const CdoPR_CONTAINER_CLASS =3D3D &H3613001E
> > Set objFolder =3D3D objFolders.Add
> > objFolder.Name =3D3D "My Folder"
> > objFolder.Update
> > Set objFields =3D3D objFolder.Fields
> > Set objField =3D3D objFields.Add(CdoPR_CONTAINER_CLASS)
> > objField.Value =3D3D "IPF.Contact"
> > objFolder.Update
> >
> > <Siegfried />
> >
> > > -----Original Message-----
> > > From: Dante Tang [mailto:dante.tang@s...]
> > > Sent: Friday, November 16, 2001 8:59 AM
> > > To: ASP CDO
> > > Subject: [asp_cdo] How to create a folder for storing Contacts?
> > >=3D20
> > > I would like to create a folder for storing personal Contacts
> > > programmatically. I have got a folder reference and called the Add
> > method.
> > > However, by default, it is a general folder... It is not able to
store
> > > Contacts information. How can I specify the content type of my
folder?
> > >=3D20
> > > Any advice or comment are welcome, Thanks a lot in advance.
> > >=3D20
> > > Dante Tang
> > >=3D20
> > $subst('Email.Unsub')
> >
>
>
$subst('Email.Unsub')
|
|
 |