PortalInitializeEventForRegistration Method
Gets all prerequisite operations before you can register a Contact for an Event. For example, you can check whether a Contact is already a registered Participant in the Event, whether a Contact already exists in CampusNexus CRM and specify details of the Participant.

Namespace:  PortalService
 

Syntax
C#
public long InitializeEventForRegistration(
	long lPortalId,
	long eventId,
	long contactId,
	ref ParticipantDetails[] participantsList,
	bool isGroupRegistration,
	bool bDontCheckForRecurrence,
	out bool isSeatAvailable,
	out double discountedCost,
	out string error
)

Parameters

lPortalId
Type: SystemInt64
[in] The ID of the Customer Portal instance.
eventId
Type: SystemInt64
[in] The ID of the required Event.
contactId
Type: SystemInt64
[in] The ID of the Contact you want to register for an Event.
participantsList
Type: ParticipantDetails
[ref] This is an array of the ParticipantDetails structure that contains participation details of a Contact.
isGroupRegistration
Type: SystemBoolean
[in] Enables you to specify whether you want to enable Contacts to register for the Event as a group or as individual Participants. You can specify one of the following values:
  • 0 - Specify this value to enable Contacts to register for an Event as individual Participants.
  • 1 - Specify this value to enable Contacts to register for an Event as a group.
bDontCheckForRecurrence
Type: SystemBoolean
[in] This is currently not used
isSeatAvailable
Type: SystemBoolean
[out] Indicates whether sufficient seats are available for Contacts to register for the Event. This parameter returns one of the following values:
  • 0 - Indicates that sufficient seats are not available in the Event.
  • 1 - Indicates that sufficient seats are available in the Event.
discountedCost
Type: SystemDouble
[out] The discounted cost available for the specified Contact.
error
Type: SystemString
[out] The error messages returned when the operation fails.

Return Value

Type: Int64
The InitializeEventForRegistration method returns 0 if the operation is successful and a negative value if the operation fails.
See Also