ITokenServiceCreateTenantDataToken Method

Creates a new tenant data token based on the specified data source element.

Namespace:  Dundas.BI.Data.Parameters.Tokens
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
DataToken CreateTenantDataToken(
	string tokenName,
	Guid tenantId,
	Guid projectId,
	Guid sourceStructureId,
	string elementName,
	TokenDataCategory category
)

Parameters

tokenName
Type: SystemString
The token name.
tenantId
Type: SystemGuid
The tenant ID.
projectId
Type: SystemGuid
The project ID.
sourceStructureId
Type: SystemGuid
The token identifier.
elementName
Type: SystemString
The element name.
category
Type: Dundas.BI.Data.Parameters.TokensTokenDataCategory
The data token category rule.

Return Value

Type: DataToken
Exceptions
ExceptionCondition
ArgumentExceptionprojectId or tenantId or sourceStructureId is Empty.
ArgumentException

category is not a valid TokenDataCategory.

-or-

the specified source structure is not a DataCube or a NativeStructure.

ArgumentExceptiontokenName or elementName is or Empty.
NotFoundExceptionThe specified source structure or the data element cannot be found.
NoPrivilegeException

The caller does not have permission to update the token.

-or-

The caller does not have permission to update the token for the token tenant.

InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also