ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Lotus Notes functions / Group functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Adds a group of contacts into the address book of a Lotus Notes or Outlook messaging. The Group structure is used to define the data for this group of contacts.
Caution: This function cannot be used to add a group of contacts into the address book of an Outlook Express messaging.
Example
// Start a Lotus Notes session
SessionID is int
SessionID = EmailStartNotesSession("Password", "MarsServer", ...
"mail\julia.nsf", "C:\Users\Julia\AppData\Local\Lotus\Notes\Data\user.id")
// Initialize the variables of the Group structure
GroupReset()
// Fill the variables for the new group
mGroup.Name = "My friends"
mGroup.Description = "Group of friends"
mGroup.NbContact = 3
mGroup.Contact[1] = "Peter"
mGroup.Contact[2] = "Paul"
mGroup.Contact[3] = "Jack"
// Add the group
IF GroupAdd(SessionID) = True THEN
Info("Group of contacts successfully added")
ELSE
Error("Error during the addition", ErrorInfo())
END
Syntax
<Result> = GroupAdd(<Session identifier>)
<Result>: Boolean
  • True if the addition was performed,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Session identifier>: Integer
Session ID to be used. This identifier is returned by one of the following functions: EmailStartNotesSession, EmailStartOutlookSession, NotesOpenDatabase or OutlookStartSession.
Remarks
The groups of contacts are not supported by Outlook 97. Therefore, no group of contacts can be added in this version of Outlook.
Component: wd290com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help