Skip to main content

Constructors

NSRoleEntity()

Initializes a new instance of the NSRoleEntity class.

Methods

GetCreated()

Returns: CRMScript.Global.DateTime - Registered when. Example:

GetCreatedBy()

Returns: CRMScript.NetServer.NSAssociate - Created by user. Example:

GetDataRights()

Returns: CRMScript.NetServer.NSDataRights - Data rights matrix, defines role’s access to data owned by current user, users in same group, and other users. Example:

GetDeleted()

Returns: CRMScript.Global.Integer - 1 if role has been deleted (we do not actually delete). Example:

GetName()

Returns: CRMScript.Global.String - Visible role name. Example:

GetRank()

Returns: CRMScript.Global.Integer - Sorting rank of this role in lists. Example:

GetRoleId()

Returns: CRMScript.Global.Integer - Primary key. Example:

GetRoleType()

Returns: CRMScript.Global.Integer - The role type. See <xref href=“CRMScript.NetServer.RoleType” data-throw-if-not-resolved=“false”></xref>.
Changing this field has no effect, so treat this as a read-only field.
Example:

GetTooltip()

Returns: CRMScript.Global.String - Description of the role. Example:

GetUpdated()

Returns: CRMScript.Global.DateTime - Last updated when. Example:

GetUpdatedBy()

Returns: CRMScript.NetServer.NSAssociate - Last updated by user. Example:

GetUseCategories()

Returns: CRMScript.Global.Integer - Apply role category membership to users. Example:

SetCreated(DateTime)

Returns: CRMScript.Global.Void Example:

SetCreatedBy(NSAssociate)

Returns: CRMScript.Global.Void Example:

SetDataRights(NSDataRights)

Returns: CRMScript.Global.Void Example:

SetDeleted(Integer)

Returns: CRMScript.Global.Void Example:

SetName(String)

Returns: CRMScript.Global.Void Example:

SetRank(Integer)

Returns: CRMScript.Global.Void Example:

SetRoleId(Integer)

Returns: CRMScript.Global.Void Example:

SetRoleType(Integer)

Returns: CRMScript.Global.Void Example:

SetTooltip(String)

Returns: CRMScript.Global.Void Example:

SetUpdated(DateTime)

Returns: CRMScript.Global.Void Example:

SetUpdatedBy(NSAssociate)

Returns: CRMScript.Global.Void Example:

SetUseCategories(Integer)

Returns: CRMScript.Global.Void Example: