0 votes

Hallo @All,

I have a short question about business rules.
I have some Power Shell scripts that should run after I create and update a user object.
So I have the option to set after create or after change an object.

When I create two business rules with exact the same doings I have to maintain both of them. :(

Is there a way to trigger a business rule or to setup my goals?

Thanks and have a nice weekend

by (360 points)

1 Answer

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

Hello Arne,

In such scenarios, the best practice is to create a Custom Command with all the necessary actions and conditions, and then execute it by both the Business Rules. In this case, you will need to maintain only the Custom Command.

For information on how to create a Custom Command, see Create a Custom Command. To execute it in your Business Rules, use the Execute a Custom Command action.

In order to avoid running the command manually from the UI, you can disable it. Disabled Custom Commands do not appear anywhere in the UI and can be executed only by Business Rules, Scheduled Tasks and other Custom Commands.


Hello Support,

that's nice and working for me.

Big thank's to you.
Kind regards

Related questions

0 votes
1 answer

We would like to create a ticket in our ticketing system after a user's account is unlocked. I would like to use a business rule to do this so that it happens automatically. I don't see an option for this. I only see "After updating a user:"

asked Feb 4, 2020 by mark.it.admin (2.1k points)
0 votes
1 answer

Every time when I try to save a change for a business rule in Adaxes Console, I got the error "An error occurred while saving the custom command. Requested Service not found" I close and open the console again but doesn't help.

asked Aug 9, 2021 by kfung00 (20 points)
0 votes
1 answer

Hi, I recall reading in documentation that business rules will be triggered also if changes are made in AD MMC or powershell. Right now the rules are triggered when changes ... so would there be any way to have business rules triggered in these cases? Thanks

asked Dec 7, 2017 by digimortal (240 points)
0 votes
0 answers

I have a business rule that is supposed to trigger after changing the logon name of a user. It's working fine in that scenario, but apparently it's also triggering on user creation as well. Any ideas? Thanks, Tim

asked Jan 6, 2015 by tjackson111 (40 points)
0 votes
1 answer

This happens very rarely, but occasionally when a user changes there password from the self service site they will be logged out from the site. This is confusing to our ... need to change to stop this from happening? Any advice is appreciated, thanks! Spencer

asked Dec 18, 2017 by spencerp (120 points)
2,801 questions
2,535 answers
61,659 users