Hello, I have a scheduled task that update the employeeID from a value in our ERP system. Right now the task runs a Powershell script that gathers the info and then uses Set-AdmUser to set the attribute. A business rule then kicks in to send the operation for approval. This allows us to monitor what is going on, and to view what the EmployeeID is being set to (as a sanity check) before we allow the change. Eventually we'll probably just let it run wild with no checks, but that's in the far future.
Everything works fine, but the logs for the scheduled tasks always show that an error occurred, the message attached to the error just states that "This operation requires approval." This will make it difficult to distinguish actual errors from the task running as it should.
Is there a way to stop the logs from showing an error when approval is required? Or is there a better way to handle the whole process?
Thanks in advance.