FreeResourceSearch (NotesSession - LotusScript®)

Searches for free resource slots for calendaring and scheduling.

Defined in

NotesSession

Syntax

Set variant = NotesSession .FreeResourceSearch( Start , End , Site$, Type%, Maxresults, [User$], [Mincapacity], [Apptunid$], [Server$], [Outputversion])

Parameters

Start

NotesDateTime. The start time of resource.

End

NotesDateTime. The end time of resource.

Site$

String. Site name information.

Type%

Integer. The type of resource.
  • CAL_RESOURCE_TYPE_ROOM(1)
  • CAL_RESOURCE_TYPE_OTHER(2)

Maxresults

Integer. The maximum number of results you want returned from this search. Default is set to 1.

User$

String. Optional. The user who is searching for the resource.The default is the current user.

Mincapacity%

Integer. Option. The minimum capacity limit of the resource. Set this to 0 to ignore the capacity limit. The default is 0.

Apptunid$

String. Optional. The UNID for a specific appointment. If you search a resource for a reschedule, this parameter is useful. The default is NULL.

Server$

String. Optional. The name of the server which includes the directory and busy-time for your search. The default is "".

Outputversion

Integer. Optional. Function version number. For example, AVAILABLERESOURCESLOOKUP_VERSION_0(0)

Return value

Variant

Array of strings. The format of each string is: ResourceName;Capacity;Email. This represents a sample string: CN=Room 2001/O=Boston Building 1;50;bos1-room2001@swg.usma.ibm.com.

Language cross-reference

freeResourceSearch method in Java Session class

freeResourceSearch method in JavaScript NotesSession class

Examples