in reply to Re: Re: Perl control of Outlook import to contacts with win32::OLE
in thread Perl control of Outlook import to contacts with win32::OLE
See if that helps. Use that browser that I pointed out to actually investigate the 'ContactItem' class object, and use the exact name given for the other properties in question.$NewContact->{FullName}= $rec->{first_name} . ' ' . $rec->{last_name}; $NewContact->{Title} = $rec->{title}; $NewContact->{FirstName} = $rec->{first_name}; $NewContact->{LastName} = $rec->{last_name}; $NewContact->{BusinessTelephoneNumber} = join '-', $rec->{prefix1}, $rec->{suffix1}; if ($rec->{prefix2}){ $NewContact->{Business2TelephoneNumber} = join '-', $rec->{prefix2}, $rec->{suffix2}; } else { $NewContact->{Business2TelephoneNumber} = '27'; } $NewContact->{CompanyName} = $rec->{company}; $NewContact->{PrimaryTelephoneNumber} = join '-', $rec->{prefix1}, $rec->{suffix1}; $NewContact->{OfficeLocation} = $rec->{location}; $NewContact->{User1} = $rec->{site}; $NewContact->{"Email1Address"} = 'mytest@mytest.com';
C-.
Update: To answer your other questions. You should read the Win32::OLE documentation first. The GetActiveObject method is described there, as it's a part of that package.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Check your property Names in the Outlook ContactItem Class
by Anonymous Monk on May 24, 2002 at 15:27 UTC | |
by cacharbe (Curate) on May 24, 2002 at 15:32 UTC | |
by Anonymous Monk on May 29, 2002 at 16:50 UTC | |
by cacharbe (Curate) on May 29, 2002 at 19:58 UTC | |
by Anonymous Monk on May 29, 2002 at 20:32 UTC | |
|