To use custom variables, use the following articles as reference:
Dynamic Variable Creation Example
In the solution example they are using:
$slADCurrentUser = GetObject($LDAP)
If not @error
$adPager = $slADCurrentUser.pager
Endif
The first three lines and the last line stay the same. It’s the third line that changes. They created a customer variable to use Pager. Give it a variable name which can be named anything. This is what will be typed in DA. Variable name used is $adPager. Then it must equal “$slADCurrentUser.” followed by the attribute name in the Attr LDAP Name column in the article above, which is pager.
Together it equals:
$adPager = $slADCurrentUser.pager
Another example is Mobile. In this example, name the variable $adMobile. Then look up the attribute which is Mobile.
Put it together:
$adMobile = $slADCurrentUser.mobile
Then use this variable $adMobile in a message box to see if it displays as it should.