Skip to main content

Resource functions

getResourceName#

The getResourceName function returns the name of the resource of the given resource id.

Syntax:

new NameSpace("resource").getResourceName(Number resourceId);

Parameters:

ParamData typeDescription
resourceIdNumberId of the resource.

Returns: String

Example:

name = new NameSpace("resource").getResourceName(1);log name;

getVisitorLog#

The getVisitorLog function returns the log of the given visitorlog id.

Syntax:

new NameSpace("resource").getVisitorLog(Number visitorLogId);

Parameters:

ParamData typeDescription
visitorLogIdNumberId of the log from visitorsLog.

Returns: Object

Example:

logval = new NameSpace("resource").getVisitorLog(1);log logval;

getVisitorInvite#

The getVisitorInvite function returns the invite details of the given id.

Syntax:

new NameSpace("resource").getVisitorInvite(Number visitorInviteId);

Parameters:

ParamData typeDescription
visitorInviteIdNumberId of the visitor invite.

Returns: Object

Example:

name = new NameSpace("resource").getVisitorInvite(1);log name;

getVendor#

The getVendor function returns the vendor details of the given Id.

Syntax:

new NameSpace("resource").getVendor(Number vendorId);

Parameters:

ParamData typeDescription
vendorIdNumberId of the vendor.

Returns: Object

Example:

name = new NameSpace("resource").getVendor(1);log name;

getBaseSpace#

The getBaseSpace function returns the space details of the given Id.

Syntax:

new NameSpace("resource").getBaseSpace(Number spaceId);

Parameters:

ParamData typeDescription
spaceIdNumberId of the space.

Returns: Object

Example:

name = new NameSpace("resource").getBaseSpace(1);log name;