Skip to main content
Data and function right queries.

Constructors

NSSentryAgent()

Data and function right queries.

Methods

CanCreateAppointmentInAllDiaries()

Checks if the current associate can create appointments in diaries belonging all other associates. It checks only against associates that are diary owners.
Returns: CRMScript.Global.Bool Example:

CanCreateAppointmentInAssociateDiaries(Integer[])

Checks if the current associate can create appointments in diaries belonging to the associates listed in associateIds. Checks only against associates that are diary owners.
Returns: CRMScript.Global.Bool - If none of the associates listed in the associateIds parameter is a diary owner, the method will return true. Example:

CanCreateAppointmentInEachAssociatesDiary(Integer[])

Checks if the current associate can create appointments in diaries belonging to the associates listed in associateIds. Checks only against associates who are diary owners.
Returns: CRMScript.Global.Bool[]

GetFunctionRights()

Gets a string array of all functions rights for the role of the current associate.
Returns: CRMScript.Global.String[] Example:

GetNewTableRight(String)

Returns an NSTableRight for a new row based on tableName parameter.
Returns: CRMScript.NetServer.NSTableRight Example:

GetTableRightByContactOwnership(String,Integer)

Return the NSTableRight from the relationship between the current user and the given user and group.
Returns: CRMScript.NetServer.NSTableRight Example:

GetTableRightByOwnership(String,Integer,Integer)

Return the NSTableRight from the relationship between the current user and the given user and group.
Returns: CRMScript.NetServer.NSTableRight Example:

HasFunctionRight(String)

Gets a boolean value indicating if the current user has the functional right.
Returns: CRMScript.Global.Bool