0 votes

Hello Adaxes Team I would like to change the text in the approval mail. As far as I know this is currently only possible via "Custom Action Description" text.

For my software ordering process I have created a custom command, which adds the user to the necessary software group and needs to be approved by the manager.

The custom command (object type: User) has this parameters:

  • param-Comment (text field)
  • param-Software (security group)

Custom action description text:

%initiator% orders software %param-Software% for %fullname%. Reason: %param-Comment%

image.png

Now the problem is that %param-Software% gives me the distinguishedName and that is not really helpful. When I use %description% I get the description from the user object. Is there a way I can output the description propertie from the target-object?

regards Dominik

by (670 points)

1 Answer

0 votes
by (270k points)
selected by
Best answer

Hello Dominik,

Now the problem is that %param-Software% gives me the distinguishedName and that is not really helpful.

This behavior is by design. Value references for Custom Command parameters of AD object picker type always resolve into distinguished names. Unfortunately, there is no possibility to obtain values of other properties of the object selected in the parameter using value references.

When I use %description% I get the description from the user object. Is there a way I can output the description propertie from the target-object?

In custom action descriptions, value references always resolve into the values of corresponding properties of the object for which the Custom Command is executed. For example, if a command is executed for user John Smith, value reference %fullname% will resolve into John Smith, not the full name of the user who initiated the command execution.

If you face a different behavior, please, post here or send us (support[at]adaxes.com) with the exact custom action description you are using and all the possible details regarding the behavior.

0

Hello Thank you for the quick reply.

OK, then I will currently use the "SendMail" function to send the additional detailed information about the approval. (As described here: https://www.adaxes.com/questions/127/send-a-mail-in-html-format)

I hope in a future release there will be more options to customize the Approval email. That would be very helpful so that approvers really know what they are supposed to be approving ;)

Thanks and greetings Dominik

Related questions

0 votes
1 answer

I have tried it using the Custom Commands Action "Add the user to a group", which only allows me to add the user to one group at a time, and can't use the multiple DNs that the ... I can't get it to work. Could you assist me in finding the best way to do this?

asked Jan 16 by dominik.stawny (160 points)
0 votes
1 answer

We have edited our custom action description in a custom command so that in the log and when the user gets an email, it is more clear about what it is doing. This option in the custom command action does not seem to be doing anything. Where does this show up?

asked Dec 17, 2019 by mark.it.admin (2.3k points)
0 votes
1 answer

Here is my issue, When I use this code: $DNs = %param-GroupsInRole% $Groups = $DNs -split "|" %Param-GroupsInRole% can have multiple groups. When setting up the parameter I am ... I just need to be able to do a foreach with the groups picked by the initiator.

asked Mar 23, 2023 by mightycabal (1.0k 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 (110 points)
0 votes
1 answer

I would like to add a parameter for country to a custom command. Since the country has to be entered correctly in order for Active Directory to accept it, I would like to ... ? I didn't find it in the documentation and the sample scripts didn't use parameters.

asked Jun 4, 2020 by mark.it.admin (2.3k points)
3,326 questions
3,026 answers
7,727 comments
544,678 users