Guest Paul Alexander Posted October 8, 2020 Share Posted October 8, 2020 We're now getting a fair few Azure security emails coming through which contain the 'affected users' email address (which we can find using a javascript search in the BPM). We'd like to be able to use that email address so that we can automatically change the customer of the logged request to whoever the email address belongs to. So, my question is: Could the Get User Details node be updated so that it searches for the email address of users please? At the moment it just lists UserID, LogonID and EmployeeID thanks Link to comment Share on other sites More sharing options...
Victor Posted October 8, 2020 Share Posted October 8, 2020 1 hour ago, Paul Alexander said: which we can find using a javascript search in the BPM What Javascript search ?! Link to comment Share on other sites More sharing options...
Guest Paul Alexander Posted October 8, 2020 Share Posted October 8, 2020 18 minutes ago, Victor said: What Javascript search ?! I update a custom field with this: &[global["flowcode"]["description"].substr([global["flowcode"]["description"].indexOf("Affected Azure Resource:") +24], [global["flowcode"]["description"].indexOf("[" ,[global["flowcode"]["description"].indexOf("Affected Azure Resource:")]) -24]-[global["flowcode"]["description"].indexOf("Affected Azure Resource:")])] All this does is search through the description of the request (which is the body of the email which was used to log the request) searching for "Affected Azure Resource:". I know that, directly after that text, the affected users' email address is found, so I can extract that. If I could then use that email address to find the customer and update the request, that'd be great. Link to comment Share on other sites More sharing options...
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