Skip to main content

Condition_CanCreateSiteEventOnFreeTime

Description

Checks whether a social event can be created at the earliest free hour for both the BaseObject (host) and the NonBaseObject (target). Uses the same resolution logic as Execute_CreateSiteEventOnFreeTime: template lookup, template condition check, site resolution, and a 7-day free-slot scan.

Parameters

ParameterDescription
BaseObjectThe host entity (Self or Target). The other character is the single invitee.
CompareTypeEqual: a free time slot exists; NotEqual: no free time slot was found.
S1SocialEventTemplateTable row ID identifying the event template.
S2True to restrict the search to weekends and public holidays only. False or None for any.

Examples

DescriptionBaseObjectCommandCompareType
Check if a social event can be booked on any daySelfCanCreateSiteEventOnFreeTimeEqual
Check if a social event can be booked on a weekend/holidaySelfCanCreateSiteEventOnFreeTimeEqual
Check if NO free time exists for this social eventSelfCanCreateSiteEventOnFreeTimeNotEqual