0 votes

Hello,

I have a Business rule that does the following :

If 'extentionAttribut9' property has changed AND
the 'adm-CustomAttributeTextMultieValue1' property equals 'Add Groups' then
Execute custom command 'my custom command 1'

If 'extentionAttribut9' property has changed AND
the 'adm-CustomAttributeTextMultieValue1' property equals 'Clone Groups' then
Execute custom command 'my custom command 2'

The problem is that I want property "extentionAttribut9" to be reset at the end of the process.
If I do it I will comes into a loop.

How can I prevent it?

Thanks in advance.

by (1.1k points)
0

I did somethings like this and Adaxes has somethings to prevent loop.

Added :
...
AND
the 'extentionAttribut9'property equals 'UserName' then

...

IF the 'extentionAttribut9'property does not equals 'UserName' then
Set ExtentionAttribut9 to UserName

1 Answer

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

Hello,

The problem is that I want property "extentionAttribut9" to be reset at the end of the process.
If I do it I will comes into a loop.

Do we understand correctly that you want to clear the extentionAttribut9 property?

If that is correct, you can use the If extentionAttribut9 is not empty condition for both sets. To do so:

  1. Right-click an action in the set and click Add Condition.
  2. Select If <property><relation><value>.
  3. Select If Extension Attribute 9 is not empty.
  4. Click OK.
  5. Repeat all the steps for the second set and save the changes.

Also, it is not recommended to remove the If operation succeeded condition. In this case the Business Rule will trigger even if updating an object was not successful. To add the condition to both sets:

  1. Right-click an action in the set and click Add Condition.
  2. Select If operation <result>.
  3. Select If the main operation succeeded.
  4. Click OK.
  5. Repeat all the steps for the second set and save the changes.
0

Thank you.

0

What if i need to put some other command, then too would have to follow the same guide?

0

Hello,

Yes, you can use the same guide if you want to add another command or use another attribute.

Related questions

0 votes
1 answer

I'd like to be able to either send an email report or export a CSV of all of the business rules carried out when a user is disabled. This would be ... Management Activity section but this includes things that weren't part of the disable operation. Thanks

asked Feb 19, 2020 by bavery (250 points)
0 votes
1 answer

In our environment, we have many business rules with "Add to group". Now I have to delete the "Add to group xyz" in all business rules, as the group is now rule-based. Is there ... in Adaxes so that I don't have to search for and delete all "Add to group xyz"?

asked Mar 7 by DRiVSSi (240 points)
0 votes
1 answer

We'll be updating over 14K accounts with data (adding data to a virtual attribute) using a scheduled task but I don't want the updates to trigger Business Rules and flood the Adaxes log with entries. Is there an easy way to prevent this?

asked Apr 12, 2022 by sandramnc (870 points)
0 votes
1 answer

Any advice would be greatly appreciated.

asked Feb 9, 2023 by Homelander90 (330 points)
0 votes
1 answer

I have a Rule-Based group with users. Every time a users gets added or removed from this group I want to trigger a Business Rule for "Atter adding or removing a member ... Rules be triggered by a Rule-Based group adding or removing a user? Morten A. Steien

asked Mar 27, 2023 by Morten A. Steien (300 points)
3,326 questions
3,026 answers
7,727 comments
544,681 users