0 votes

Then I could put the approval on the custom command.

by (1.0k points)

1 Answer

0 votes
by (294k points)

Hello,

In a script, can we trigger a custom command?

Yes, it is possible to execute custom commands using scripts. For examples, see https://adaxes.com/sdk/SampleScripts.ExecutingCustomCommands.

Then I could put the approval on the custom command.

Unfortunately, this will not work. If you execute a custom command in a script and use the $Context.SubmitForApproval method in the same script, it will not send the custom command execution for approval. Instead, the operation that triggered execution of the script will be submitted for approval. You need to use the approach from the reply to the initial Q&A post - enabling the Get approval for this action option in the configuration of the Run a program or PowerShell script action.

Related questions

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 know if it is possible to create a field in the web UI under user management to "assign" a machine to a user. I would like to be able to put the ... be moved to "workstation OU. Is there s custome field that can be used to accomplish this?

asked Oct 22, 2020 by copatterson (70 points)
0 votes
1 answer

The rule runs but since the first name and last name are passed as parameters, I only get the sequential # as a userID without the initials.

asked Oct 24 by curtisa (290 points)
0 votes
1 answer

We currently have a form for HR to deal with ex-employees that are hired once more, but it's not much more than automatic emails sent to IT. If I add some actions ... this trigger the business rule we have that targets "After updating a user" ? Thanks, Louis

asked Oct 18, 2022 by lw.fa (150 points)
0 votes
1 answer

We are developing a process to mange mailboxes for terminated users. At the time of termination we would like to: convert the mailbox to a shared mailbox. Send an approval ... would run script to grant the manger access to the mailbox. Can this be done?

asked Oct 27, 2023 by mightycabal (1.0k points)
3,588 questions
3,277 answers
8,303 comments
548,090 users