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
Arne

by (360 points)

1 Answer

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

0

Hello Support,

that's nice and working for me.

Big thank's to you.
Kind regards
Arne
:D

Related questions

0 votes
1 answer

Hi team, I have a follow up to this question https://www.adaxes.com/questions/14234/business-after-adding-members-powershell-script-executed Let me explain my setup A rule- ... area% failed due to the following exception: $($_.Exception.Message)", "Error") }

asked Feb 13 by wintec01 (1.1k points)
0 votes
1 answer

I am trying to trigger processing outside of Active Directory when an account is created based on the source user account that was used. Does Adaxes store the source account anywhere?

asked Oct 9, 2023 by jnordell (20 points)
0 votes
1 answer

Hi team, I need to update users extensionAttribute6 after adding or removing them from a specific group. This is my setup: Group is updated based on rule set within Adaxes ... would like to update users after they were added or removed from this group. Thanks!

asked Sep 25, 2023 by wintec01 (1.1k points)
0 votes
1 answer

I need a way of triggering a business rule based on the user (and not the group) being added or removed from a group. The reason I would like this triggered on the user is so ... prefer not to do that. I am checking to see if there is another way to do this.

asked May 16, 2023 by mark.it.admin (2.3k 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 (130 points)
3,347 questions
3,048 answers
7,787 comments
545,035 users