PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Creating a profile
  • Current directory
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Used to access the data handled by the Outlook messaging software (emails, contacts, groups of contacts, tasks, appointments and folders). This function is equivalent to EmailStartOutlookSession. To close the session, you must use CloseSession or EmailCloseSession.
Caution: This function cannot be used to access the data handled by the Outlook Express messaging software.
Note: When using OutlookStartSession, the current directory is automatically modified by Outlook.
// Start the session
IF OutlookStartSession("MyProfile") <> 0 THEN
Info("Session started")
ELSE
Error(ErrorInfo())
END
Syntax
<Result> = OutlookStartSession(<Profile> [, <Opening Options>])
<Result>: Integer
  • Session identifier.
  • 0 or False if an error occurred. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Profile>: Character string (with quotes)
Identifies the connection profile.
Versions 16 and later
New in version 16
If this parameter corresponds to an empty string (""):
  • if several profiles are defined on the current computer, OutlookStartSession displays a window containing all the profiles among which the user can choose his own profile.
  • if a single profile is defined on the current computer, OutlookStartSession automatically selects this profile.
Windows Mobile User account to use. If this parameter contains an empty string (""), the "ActiveSync" user account will be used.
<Opening Options>: Optional integer constant
Versions 18 and later
Mode for opening the Outlook session:
outlookAPTWithContact
(Default value)
The AppointmentXXX functions will list the contacts associated with the appointments in the mAppointment.Participant variable (see Appointment structure).
outlookAPTWithParticipantThe AppointmentXXX functions will list the participants associated with the appointments in the following variables:
  • mAppointment.Participant
  • mAppointment.ParticipantCc
  • mAppointment.ParticipantBcc
See Appointment structure for more details.
New in version 18
Mode for opening the Outlook session:
outlookAPTWithContact
(Default value)
The AppointmentXXX functions will list the contacts associated with the appointments in the mAppointment.Participant variable (see Appointment structure).
outlookAPTWithParticipantThe AppointmentXXX functions will list the participants associated with the appointments in the following variables:
  • mAppointment.Participant
  • mAppointment.ParticipantCc
  • mAppointment.ParticipantBcc
See Appointment structure for more details.
Mode for opening the Outlook session:
outlookAPTWithContact
(Default value)
The AppointmentXXX functions will list the contacts associated with the appointments in the mAppointment.Participant variable (see Appointment structure).
outlookAPTWithParticipantThe AppointmentXXX functions will list the participants associated with the appointments in the following variables:
  • mAppointment.Participant
  • mAppointment.ParticipantCc
  • mAppointment.ParticipantBcc
See Appointment structure for more details.
Remarks

Creating a profile

To start a new session with Outlook, a "profile" must be defined. This "profile" is defined in the configuration of the Internet connection with Outlook.
To create a profile:
  1. Start Outlook.
  2. In the "Choosing a profile" window, click [New].
  3. Select the "Microsoft Exchange Server" service.
  4. Give a name to the profile.
  5. Enter the name of Microsoft Exchange server.

Current directory

Caution: OutlookStartSession modifies the path of the current directory (returned by fCurrentDir).
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment