- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2016 03:23 PM
I currently use an inbound email action that captures the email in a web form outside of ServiceNow, but if the email isn't in a certain format it won't recognize who the caller is and will leave as blank. To avoid this I am trying to find a way to add to the script so it can capture the information using the username field. Is there any way to do this?
Thanks again!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2017 01:57 PM
Caller field is captured now. Had to add value pairs and then add that to the inbound action for Create Incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2017 10:00 AM
I have a suspicion the incorrect field name is causing the issue since a custom field starts with "u_".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2016 06:18 PM
I have revised the script to work better with emails that may also contain names. Also, using Encoded Query makes it easier to work with multiple alt emails.
If you do want to check for alt emails, you'll need to add those fields to sys_user. Another possibility is to use a single string field with multiple alternate emails, separated by comma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2017 11:19 AM
Thank you for all your help so far! I spoke to my boss about using CIN/Employee ID instead but he rather use either email or username instead.
The problem with your comment above is that if I add alternative emails in a single field or to the sys_user table, then it would be about 25,000 user emails I would have to add, which isn't the most efficient way to do things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2017 11:25 AM
Given the options, I'd recommend using username over multiple emails, especially if the username is already in the sys_user table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2017 11:31 AM
I agree. As you mentioned before, I did notice that the field name may be an issue because instead of "u_cin_employee_id," I only saw User ID in the sys_user table so I think this is causing an issue. I have now added CIN/Employee ID as well. I am trying to work with your initial script from the beginning of this thread.
Dictionary entries: