Trying to prevent duplicate users with same email address in my custom user table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 12:58 PM
I am writing a client script to stop a user from creating a new user record if the same address is in the system already
function onSubmit() {
//Type appropriate comment here, and begin script below
var currentEmail = g_form.getValue('email');
var newUser = new GlideRecord('table_name');
newUser.addQuery('email', currentEmail);
newUser.query();
if (newUser.next()) {
return false;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 01:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 01:17 PM
i have my own custom user table will this option is not available in my scoped app

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 01:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 01:51 PM
does it need to be added from the global side?