0
Answered

Initiating actions in UNIFYBroker/Plus on attribute value change

Adrian Corston 8 months ago in UNIFYBroker/Plus updated by Beau Harrison (Senior Software Engineer) 8 months ago 5

I am building a customer solution that requires an email to be sent to a user's manager when that user's attribute changes to a particular value (i.e. employeeState from "pending" to "active").

How can I implement this in UNIFYBroker/Plus?  This is functionality that is likely to be generally necessary, as customers often have a requirement to initiate a once-off event/action in response to a user's changed circumstances.

Affected Versions:
Fixed by Version:
GOOD, I'M SATISFIED
Satisfaction mark by Adrian Corston 8 months ago
+1
Under review

Hi Adrian,

Best way to implement this would be create a PowerShell connector which performs the email send operation when it is provisioned to. Create a link to provision to this connector when the attribute contains the desired value, and optionally deprovision when it is changed from the desired value to allow for additional emails to be sent when the attribute is changed back.

Thanks Beau, I think that will work for me.  What's the easiest external database/system you can suggest for the PowerShell connector to use a data source (since I presume I'll need to implement Import All functionality as well)?  Ideally something more lightweight than a SQL database...

It's not really needed. In normal operation you won't ever need to import that connector. It's entities essentially exist only as a "have sent email" flag. If you want to persist that connectors state for recovery purposes, you could manually write to a csv file, however in those scenarios you could also simply temporarily comment out the email sending PowerShell and baseline sync the link.

Excellent, that's even better.  I wasn't sure whether "no import" was an option or not - good to know it will be OK.