- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2021 02:52 PM
Hi
Is there some kind of hidden system property that holds a instance's email address?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2021 05:52 AM
Hi
in case you have a PDI then your instance email address is
dev<INSTANCE NUMBER>@servicenowdevelopers.com
dev12345@servicenowdevelopers.com
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2021 03:26 PM
The instance email is usually xxxx@service-now.com.
If your instance url is "audi.service-now.com", the email would be "audi@service-now.com".
Also you can probably see it in the Outbound/Sent emails from your instance, just look at the "From" field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2021 03:38 PM
Look in Email Accounts in the left nav, then ServiceNow SMTP, which is managed by ServiceNow. You will see the Email user label and From address, both of which you can change, and the User name which will be the address that you would send to for the instance. There is a system property to override the address in non-production instances. You can see this via Email Properties in the left nav, in the Outbound Email Configuration "Send all email to this email address (non-production testing).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2021 08:13 AM
Thanks for this! It wasn't my post but it helped me out with something I needed to find for my boss 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2021 05:46 AM
Hi @shaik.irfan ,
You could do something like this:
var email = gs.getProperty('instance_name') + '@service-now.com';
Please mark my answer as helpful/Correct so that these threat will close and it will benefitted to others as well.
Regards,
Gunjan