How to set the email with next number if already exists in the system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 12:24 AM
Hello All,
I need help in setting email if already exists in the system.
for example: if email 'test.test@gmail.com' exists in the system it should set 'test.test1@gmail.com' in the email field in the portal. likewise if 'test.test1@gmail.com' exists it should set 'test.test2@gmail.com' in the field.
Please help me out of this thing.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 02:12 AM
In a custom table used in the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 12:45 AM
very difficult to understand without screenshots and valid business requirements.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 02:11 AM
Hello @Ankur Bawiskar
The email field is populating based on the first name and last name. When the email address already exists in the system it should add a numerical value like 1, 2.... to the email before '@' without based on the first or last name. if email address already having 1 before @ exists in the system. it should take 2 for the email.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 02:23 AM
so check this using GlideAjax wherever you are populating the field
what's the challenge?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 06:12 AM
I am checking that, but if same email exists in the system like test@gmail.com. it should add 1 before @ in the email id like test1@gmail.com if test1@gmail.com exists it should add 2 before @ like test2@gmail.com.