Nikolaj Posted September 27, 2022 Posted September 27, 2022 Hello Support, I need a solution, We are using external authorisation and send it to the Line Manager Email address. But in some of our users in Hornbill has no Line Manager assigned. So my question is can i send it in this case to the IT Manager for example? This mean i have to put an optional email address to the node. if that could be possible it would be fine for us. Hope that make sense to you. Best regards Nikolaj
Steve Giller Posted September 27, 2022 Posted September 27, 2022 Once you have the Line Manager Email Address, test this is valid. If it is, branch to the External Authorisation Node as normal. If not, branch to a separate External Authorisation Node which is set to mail the IT Manager. The Authorise/Reject/Expired branches can converge to the same actions or take their own paths as appropriate.
Nikolaj Posted September 27, 2022 Author Posted September 27, 2022 @Steve Giller Ok Thanks how can i add this test if it is valid or not in the process? I'm not sure how i can do that at the moment. Best regards Nikolaj
Steve Giller Posted September 27, 2022 Posted September 27, 2022 There are a few ways to do this, the simplest is probably to add a Decision Node after Get Line Manager Email Address and have a branch for&[global["flowcoderefs"]["resultRef"]["email"]] is not set which will test for an empty email - this goes to the the IT Manager Authorisation, and aNo Match Which goes to the Line Manager Authorisation. Note: This simple version relies on the Line Manager's email being either correct or empty. Also, in the Get Line Manager Email Address node it would be worth ensuring that the Result Reference is unique to ensure that variable isn't incorrectly populated elsewhere in the workflow.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now