SendInvitation Method

The SendInvitation method sends an instant message inviting the specified recipients to the workspace containing the current Forms tool.

Syntax

object.SendInvitation

(

i_pIToContactURLEnumAsIGrooveBSTREnum,

i_BodyAs String = "",

i_TrackInvitationAs Boolean = True,

i_SaveSentInvitationAs Boolean = False,

i_InviteeTelespaceRoleNameAsGrooveFormsToolRole

= GrooveFormsToolRole_Participant,

i_RequireConfirmationAs Boolean = False

)

Parameters

Parameter Description

i_pIToContactURLEnum

Enumeration of contact URLs to receive invitation.

i_Body

Invitation message text. Default value is “”.

i_TrackInvitation

Controls if Messaging Services should track invitation status through its Notifier. Specify TRUE to track the invitation and specify FALSE to not track the invitation. Default value is TRUE.

i_SaveSentInvitation

Controls if Messaging Services should save a copy of the outbound invitation message in the message store for the sending account. Specify TRUE to save a copy and specify FALSE to not save a copy. Default value is FALSE.

i_InviteeTelespaceRoleName

Initial role of invitee in workspace. Default is empty string.

i_RequireConfirmation

Controls whether the inviter will get a confirmation message after an invitee accepts the invitation. If a confirmation message is required, the invitee becomes a member of the workspace only after the inviter confirms the invitation. Specify TRUE to require a confirmation and specify FALSE to not require one. Default value is FALSE.

Remarks

Before sending an instant message to a contact, you should call the IGrooveFormsToolContactServices DoesContactExistmethod. DoesContactExist specifies whether Groove has enough information about the contact to send an instant message. Note that if the contact does not exist, but you have access to the contact as a value in a Contact field, you can make the contact accessible.

To use default values for interface parameters, you must pass an empty object such as one created by the following code:

var ContactURLEnum = CreateBSTREnumFromArray(new Array());

Note

This method displays a modal dialog that requests permission from the user to send the message. Consequently, this method should not be called from a script when a transaction is open. Macros are executed within an open transaction so this method should not be called from a macro.

See Also

Reference

IGrooveFormsToolMessagingServices Interface
DoesContactExist Method

Concepts

Using Contacts in Forms