Resource functions
getResourceName#
The getResourceName function returns the name of the resource of the given resource id.
Syntax:
new NameSpace("resource").getResourceName(
NumberresourceId);
Parameters:
| Param | Data type | Description |
|---|---|---|
| resourceId | Number | Id 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(
NumbervisitorLogId);
Parameters:
| Param | Data type | Description |
|---|---|---|
| visitorLogId | Number | Id 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(
NumbervisitorInviteId);
Parameters:
| Param | Data type | Description |
|---|---|---|
| visitorInviteId | Number | Id 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(
NumbervendorId);
Parameters:
| Param | Data type | Description |
|---|---|---|
| vendorId | Number | Id 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(
NumberspaceId);
Parameters:
| Param | Data type | Description |
|---|---|---|
| spaceId | Number | Id of the space. |
Returns: Object
Example:
name = new NameSpace("resource").getBaseSpace(1);log name;