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 (26.2.0.1000)
Syntax
DataToken CreateTenantDataToken(
	string tokenName,
	Guid tenantId,
	Guid projectId,
	Guid sourceStructureId,
	string elementName,
	TokenDataCategory category
)

Parameters

tokenName  String
The token name.
tenantId  Guid
The tenant ID.
projectId  Guid
The project ID.
sourceStructureId  Guid
The token identifier.
elementName  String
The element name.
category  TokenDataCategory
The data token category rule.

Return Value

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