Hello,
Based on your script, we check whether there is already a request. However, we often get the following error and do not know why. Can you help us?
Cannot compare "Softerra.Adaxes.Adsi.Search.AdmSearchResult" because it is not IComparable. Stack trace: at <ScriptBlock>, <No file>: line 19
Business Rules: Command Processor 'Business Rules' threw an exception when processing the command. ↲ A list of actions to be triggered by Business Rules couldn't be generated. ↲ Failed to check the following condition of the 'Before Updating a User' business rule: If script 'Check for any requests' returns true. ↲ Cannot compare "Softerra.Adaxes.Adsi.Search.AdmSearchResult" because it is not IComparable.
Thank you