0 votes

Is it possible to have a business rule of the form:

IF (company = "Company1") then
    set City = "New York"
    set Manager = "New York Manager"
    If (state = "CO") then
        set telephone "303"
    else if (state = "NY")
        set telephone "202"
    else
        clear telephone
    end if
end if 
by (20 points)

1 Answer

0 votes
by (294k points)

Hello,

Unfortunately, there is no possibility to use if statements within another if statement. You can try using separate action sets with else if and else blocks. However, pay attention that all the conditions are checked before the business rule is executed. Meaning that if you set a property value in the first action set and then check it in the next one, the condition will not be met.

Related questions

0 votes
1 answer

A little bit of context: There are 3 departments that share 1 Active Directory. Now each department has its own OU. I would like to have an email sent when a user is ... if this is possible without Powershell? If not, is there a pre-existing script for this?

asked Oct 3, 2023 by Cas (200 points)
0 votes
1 answer

In order to add a managed domain does it have to be trusted by the primary domain adaxes is installed an running in? I have set up a domain for testing adaxes and it ... I have set my host file to point the untrusted domain to it's primary Domain Controller.

asked Oct 5, 2022 by mightycabal (1.0k points)
0 votes
1 answer

In this case the working example would be that the user would need to add a new title into a list of titles in the title property pattern

asked Dec 13 by msheppard (610 points)
0 votes
1 answer

I have a dropdown-field on the web surface, which is populated by a script. The script looks up all groups in a specific OU and displays them. In the Property Pattern ... random order. What should i do to show the groups in alphabetical order in the portal?

asked Sep 15, 2020 by lohnag (160 points)
0 votes
1 answer

For creating a computer object, we want to check if the entered CN is already used in our AD. And for that we want to use a powershell script. An other dot ... powershell script should be start before creating the computer object, right? Thanks for your help.

asked Jun 4 by KEME (80 points)
3,588 questions
3,277 answers
8,303 comments
548,082 users