can someone explain me how can I use this virual property adm-CustomAttributeTextMultiValue1?
Thanks for your help

by (700 points)

1 Answer

by (216k points)
0 votes

Hello,

The property can be used to store multiple string (text) values, for which you can't find an appropriate Active Directory property.

The same as with any other Adaxes virtual property, CustomAttributeTextMultiValue1 is stored not in Active Directory, but on Adaxes backend, and you can use it as any other property of AD objects.

by (700 points)
0

Hi, I have used the adm CustomAttributeTextMultiValue1. This allows me in the WebGUI multiple selections (see picture).

How can I respond with an action on the various choices?
For Example I would like send an E-Mail in which automatically includes all selections or due to the different selections add the to different user Groups

Thanks

by (18.0k points)
0

Hello,

If you need to insert all values of a multi-valued property to an e-mail notification, you'll have to send e-mail using a script.
Example:

$bodyText = New-Object "System.Text.StringBuilder"
try
{
    $values = $Context.TargetObject.GetEx("adm-CustomAttributeTextMultiValue1")
}
catch
{
    $values = $NULL
}

if ($values -ne $NULL)
{
    foreach ($value in $values)
    {
        $bodyText.AppendLine($value)
    }
}

# Send mail
$Context.SendMail("%mail", "My Subject", $bodyText.ToString(), $NULL)

Currently it is impossible to use a multi-valued property in conditions. Despite the fact that the feature is already implemented, it will be available in the next release. If you need this functionality urgently, just let us know and we'll create a custom build for you.

by (700 points)
0

Hello,

Thanks for the quick reply.
I would like use your offer for a pre-release version. Is it possible to implement 5 additional multi-value attributes? Then I could cover all our requirements.

Thanks for your excellent support

by (18.0k points)
0

Hello,

OK, no problem. I'll update this post as soon as the build is ready (usually it takes 2 or 3 days). We'll add 5 new multi-valued virtual properties.

by (216k points)
0

Hello,

Here you go:

English 64-bit: http://softerra-downloads.com/adaxes/3. ... x64_en.msi
English 32-bit: http://softerra-downloads.com/adaxes/3. ... x86_en.msi
German 64-bit: http://softerra-downloads.com/adaxes/3. ... x64_de.msi
German 32-bit: http://softerra-downloads.com/adaxes/3. ... x86_de.msi

Upgrade instructions: http://www.adaxes.com/resources/InstNotes.htm#upgrade

List of changes:

  • Possibility not to manage Exchange recipients in a certain AD forest.
  • The following pages can now be set as the Default start page: Home, Search, Reports, Basket, My Favorites, My Properties, My Department, My Managed Objects, My Approvals, My Requests, My Settings.
  • Adaxes custom attributes can now be shown in Web Interface Grids
  • It is now possible to set the default page size for AD grids in the Web Interface.
  • Administration Console: Set as Primary Group
  • Administration Console: Unlock Account for multiple selected users
  • Administration Console: Reset Account for multiple selected computers
  • Added support for multi-valued properties in conditions for Business Rules, Custom Commands, and Scheduled Tasks.
  • Adaxes virtual properties are now supported in AD search
  • Export Data Wizard: Export Adaxes virtual properties
  • Macintosh line break style for data export
  • New option in the installer: Open Adaxes ports in Windows Firewall
  • Improved Password Self-Service enrolment: enrolment invitation is sent correctly when SMS verification only is enabled
  • Format as HTML option for the Send e-mail notification action.
  • Visual HTML Editor in the Hint & Help dialog (Property Patterns).
  • New calculated properties: adm-InitiatorManagerPhone and adm-ManagerPhone
  • New multi-valued virtual properties: adm-CustomAttributeTextMultiValue6 - adm-CustomAttributeTextMultiValue10
  • Bug fixes and minor improvements
by (20 points)
0

Hi,

I'm refrencing %adm-CustomAttributeTextMultiValue1% in a email notification however only the first value is returned? How can I return all values of %adm-CustomAttributeTextMultiValue1%

Thanks - Nick

by (20 points)
0

Do I still need to use the script?

by (306k points)
0

Hello,

I'm refrencing %adm-CustomAttributeTextMultiValue1% in a email notification however only the first value is returned?

This behaviour is by design.

Do I still need to use the script?

Yes, currently all values can be returned only using a script. However, we have this feature on our TODO list.

by (500 points)
0

Hi all, there is any way to put all values in a mail with other text? For example: Good morning.... below the list: %adm-CustomAttributeTextMultiValue1%_1 %adm-CustomAttributeTextMultiValue1%_2

thanks

I hope my request is clear Thanks in advance, Simone

by (306k points)
0

Hello Simone,

Unfortunately, there is no such possibility using value references. It can only be done by retrieving all the property values in a script and sending the email in the very same script. To obtain all values of a multivalued property, use method GetEx.

by (500 points)
0

Thanks, can I have an example? Sorry but I'm not confident with this type of scripts

by (306k points)
0

Hello Simone,

Sure, here is an example of the script. In the script:

  • $multiValuedPropertyName - Specifies the LDAP name of the multivalued property.
  • $separator - Specifies the separator for values of the property in the email notification.
  • $to - Specifies the address of the email notification recipient.
  • $subject - Specifies the subject of the email notification.
  • $messageTemplate - Specifies the email notification template. In the template, the {0} and {1} placeholders will be replaced with the property LDAP name and its values accordingly.
$multiValuedPropertyName = "adm-CustomAttributeTextMultiValue1" # TODO: modify me
$separator = ";" # TODO: modify me

# Mail settings
$to = "recipient@domain.com" # TODO: modify
$subject = "My Subject" # TODO: modify
$messageTemplate = @"
Hello,

Here are values of property {0} for user %fullname%:
{1}
"@ # TODO: modify

# Get property values
try
{
    $valuesArray = $Context.TargetObject.GetEx($multiValuedPropertyName)
}
catch
{
    $Context.LogMessage("Property $multiValuedPropertyName is empty.", "Warning")
    return
}

# Send mail
$values = [System.String]::Join($separator, $valuesArray)
$message = [System.String]::Format($messageTemplate, @($multiValuedPropertyName, $values))
$Context.SendMail($to, $subject, $message, $NULL)

Related questions

Hello! I would like to use the utc parameter that is described in value references - date/time formatting (https://www.adaxes.com/help/ValueReferences/). The goal is ... please indicate whiich would be the right way for using the utc switch? Thanks, Fabiano

asked May 3, 2024 by fabiano.santos-agco (20 points)
0 votes
1 answer

Using the powershell module, I know how to create a scheduled task, and also how to bind to a scheduled task that is already known. I also have used code to try creating ... same time as another. These are all one-time tasks and will be removed once executed.

asked Jan 19, 2024 by aweight (80 points)
0 votes
1 answer

Occationally Service Desk staff need to clear a DNS record when a desktop has been reimaged but is keeping the same name as loses the ability to manage its original DNS ... running in ADAXES. Can I just install the applet on the ADAXES server using powershell?

asked Jan 17, 2023 by stevehalvorson (150 points)
0 votes
1 answer

Hi All, I am currently using the 30 day free trial of Adaxes and seeing if we can use it to achieve our method of user provisioning. I am looking into server-side ... variable value within an SQL query Can this be achieved? Any help is much appreciated, Thanks

asked Feb 1, 2024 by Lewis (40 points)
0 votes
1 answer

I would like to set the Hire Date of a user to the CustomAttributeDate2. Using your script to create users from a csv file. I have tried "Hire Date" = " ... for me to get that data into the customAttribute in adaxes? Add something to the script.

asked Jan 10, 2023 by mightycabal (1.2k points)
0 votes
1 answer