- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 12:47 AM
Hi,
When i receive the email to servicenow i want to get the name of the sender.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 01:17 AM
In such case, you get guest.
var name = gs.getUser().getUserByID(email.from_sys_id).getDisplayName();
if(name="guest") {
name = email.from;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 01:15 AM
Actual plan is to create a new user record if user is not available in some circumtances.
So i am creating a user record from the inbound action now the issue for the new user record i am not able to define the name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 01:17 AM
HI,
Hope this will help
Field value set | Value used from incoming email |
---|---|
current.caller_id |
User ID of the first user whose email address matches the email.from variable. |
current.opened_by |
User ID of the first user whose email address matches the |