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 (410 points)

1 Answer

0 votes
by (220k 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

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 (1.8k 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 (1.8k points)
0 votes
1 answer

As the title says, Im looking to add a Custom Command to the Action pane that I plan to allow users to trigger a script to run. However when in the Web Config for ... as has the permissions to make changes to the Web Inferface. Am I missing something? Thanks

asked Jul 16, 2019 by Helios5287 (100 points)
0 votes
1 answer

I am working on a script that sends an email (using Send-MailMessage) to one or more recipients, selected through an AD Object Picker parameter within a custom command. I have ... picker before running the code so I am confused as to why this is not working.

asked Mar 4 by ryan741 (120 points)
0 votes
1 answer

I have a custom command that prompts for a "reporter" for our ticketing system for enabling VPN accounts. Sometimes a technician will enable an account on behalf of another ... do I extract the email address of that object chosen as a parameter? Thank you.

asked Dec 10, 2019 by bjzielinski (70 points)
2,733 questions
2,470 answers
6,460 comments
1,339,637 users