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

by (306k points)
0 votes

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

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.2k points)
0 votes
1 answer

The mail attribute pulls from their Active Directory email attribute which for most of our users is their internal email address. They would not be able to ... ourselves and the users could just provide their external email address during portal enrollment.

asked 4 days ago by jturgeon (20 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, 2024 by msheppard (880 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