Problem
There is a need for knowing when a certain attribute has changed its value, for example: knowing when an employees manager changes or knowing when a last name has changed. This may be due to other internal tools needing to be modified or adjusted.
Solution
There exist three different functions that can be used in Connect to AD to help catch these occurrences.
Note: These methods are currently only available as Send Conditions in the Notifications tab.
The three functions are:
AttributeChanged() | AttributeChangedTo() | AttributeChangedFrom()
AttributeChanged
This function takes in one parameter, which corresponds to an [target-system] technical name. If the respective [target-system] has just changed in the sync process, this expression returns true; otherwise, it returns false.
For example:
AttributeChanged('extensionAttribute1')
This will return true if extension attribute 1 has recently changed.
AttributeChangedTo
This function takes in two parameters, the first corresponds to an [target-system] technical name, the second corresponds to a specific value. This function returns true if the respective [target-system] has changed to the value in the second parameter.
For example
AttributeChangedTo('extensionAttribute1','abc')
This will return true if extension attribute 1 has recently changed to the value 'abc'. Note that this is case sensitive.
AttributeChangedFrom
This function takes in two parameters, the first corresponds to an [target-system] technical name, the second corresponds to a specific value. This function returns true if the respective [target-system] has initially had the respective second parameter value but has changed to something else.
For example
AttributeChangedFrom('extensionAttribute1','abc')
This will return true if extension attribute 1 has recently changed from the value 'abc'. Note that this is case sensitive.
Tips
One can observe very specific workflow requests in Connect to AD by using a combination of these attributes. Perhaps one would want to identify when an employees status goes from Active to Terminated. This can be done by creating a field mapping that stores the Employment.EmployeeStatusCode in an attribute, and using both AttributeChangedFrom and AttributeChangedTo in conjunction with one another.
AttributeChangedFrom('extensionAttribute1','A') && AttributeChangedTo('extensionAttribute1','T')
AttributeChangedFrom('extensionAttribute1','Active') && AttributeChangedTo('extensionAttribute1','Terminated')
Comments
0 comments
Please sign in to leave a comment.