CUSTOMDATA
The custom data of the connection: a text that an application passes on when it opens one.
Group: Information. Compatible with DAX.
Syntax
CUSTOMDATA ( )
It takes no parameters.
Returns
Text. The text the connection carries as its custom data.
Remarks
- An application that signs in with one account for many people can say on whose behalf it asks, and a role's filter can read it:
Places[District] = CUSTOMDATA (). - In OpenBI Studio it is the text given as Custom data in the Security view's See as. A client sends it as the CustomData property of its connection string.
- On a secured server only an administrator may set it; a request from anyone else that tries is refused.
- Without custom data the answer is BLANK, which also equals empty text:
CUSTOMDATA () = ""is TRUE then.
Examples
The custom data of this query
EVALUATE
ROW ( "Custom data", CUSTOMDATA () )
| Custom data |
|---|
| (varies) |
A query with no custom data
None was given here, so the answer is BLANK, equal to empty text.
EVALUATE
ROW ( "Is blank", ISBLANK ( CUSTOMDATA () ), "Equals empty text", CUSTOMDATA () = "" )
| Is blank | Equals empty text |
|---|---|
| TRUE | TRUE |