0 votes

Hi:

I am trying to create a business rule that will stop a value change based on the existing value. For example, if the telephonenumber is 1234 for a group and has to stay that way, I need it to stop anyone changing it to a different value. I have tried creating a business rule but it seems the value it uses is the incoming value of the change, not the existing value.

Thanks!

by (80 points)

1 Answer

0 votes
by (300k points)

Hello,

You are right, the current property value can only be obtained in a script. You will need a business rule triggering Before updating a group that will cancel the operation based on the script condition results. For details, have a look at the following tutorial: https://www.adaxes.com/tutorials_SimplifyingDataEntry_ValidateModifyUserInputWithScript.htm.

0

Awesome, that worked for me using the $Context.GetModifiedPropertyValue. Thanks!

Related questions

0 votes
1 answer

We have 3 email domains. 1 primary and 2 subsidary companies. I'm needing to automate setting the email domain during user creation based on department. See attached ... to be able to automate this for ongoing maintenance if users move between departments.

asked Mar 7 by browndervilleb (20 points)
0 votes
1 answer

Hi, I try to make a report for our SAM to show all users with a specific license. But I fail to even find anything. I tried, among many ... .DirectorySearcher.AppendFilter("(adm-O365AccountLicenses=POWER_BI_STANDARD)") But I get nothing. Please advice.

asked May 20, 2021 by KristofferJ (80 points)
0 votes
0 answers

Hello, I want to automate the creation of a contact based on an existing AD Users. For example, the code in my custom command contains something like: new-mailcontact - ... a parameter after he run the Custom Command from the Web interface? Thanks in advance.

asked Apr 20, 2016 by tentaal (1.1k points)
0 votes
1 answer

I'm in the process of creating a Web interface for requesting IT accounts. Upon submission, I want to run a Powershell script that will create an item in a Sharepoint task list.

asked May 14, 2021 by sandramnc (870 points)
0 votes
1 answer

This is for license purposes and we do not want them visible in the Adaxes portal.

asked Oct 22, 2021 by jfrederickwl (20 points)
3,667 questions
3,352 answers
8,462 comments
549,169 users