Is there a way to configure a Custom Command parameter to accept multiple values so I can then add them to a multi value attribute such as adm-CustomAttributeObjectMultiValue1-5?
As you might be able to interpret in my specific case I'm looking to use a directory object picker parameter
Hello,
Yes, it is possible. First of all, you need to configure the Directory object picker parameter to allow multiple selection. The parameter values can be assigned to a multi-valued property using a PowerShell script only. For example, you can use the below script executed in the Run a program or PowerShell script action. In the script:
$paramName = "param-MyParameter" # TODO: modify me $valueSeparator = ";" # TODO: modify me $propertyName = "adm-CustomAttributeObjectMultiValue1" # TODO: modify me $paramValues = $Context.GetParameterValue($paramName).Split($valueSeparator) $Context.TargetObject.PutEx("ADS_PROPERTY_UPDATE", $propertyName, $paramValues) $Context.TargetObject.SetInfo()
To allow multiple selection for the parameter:
Thank you very much
Hi, I'm working on my "account lifecycle" review processes and have a new area that I'm starting to think about. When staff who are also managers (of both users ... use! I appreciate there are some complex questions in here, so don't prioritise! Many Thanks
We've the following script we want to use in Adaxes to create as part of user creation, to ask if the user will need a AWS workspace, then asks employeetype for different ... "Error") exit(-1) } else { $Context.LogMessage("Created workspace", "Information") }
We are wanting to display all values entered into a multi value text attribute in an email sent by Adaxes. What we've found is that only the first entry into the array ... Entry" Is there a way to reference the variable so that it displays all entries? Thanks
Dear support, I'm trying to automate network share creations via custom commands. They idea is to create share and groups with command A and schedule ... "ADS_SCOPE_BASE" $scopeItem.Exclude = $False $scopeItem.SetInfo() $task.ActivityScopeItems.Add($scopeItem)
We have several scripts that use the following action: $commandID = "{b4b66610-be71-403a-a6b7-8bcf51d200ef}" $user.executecustomCommand($commandID) is there syntax that allows ... is there another way to pass parameters to a custom command through scripting?