RAMANA MURTHY G
Mega Sage
Mega Sage

Hello Community

 

We all know ServiceNow PDI restricted email sending and receiving. But sometimes we want to test inbound email actions or outbound email actions from our PDI. In this case, we can do it with our own personal Gmail account.

Here are the steps to read Gmail inbox emails from our ServiceNow PDI.

  1. Go to your Gmail account, From Settings Gear icon, select See all settingsRAMANAMURTHYG_1-1727537344962.png

     

  2. From the Forwarding and POP/IMAP tab, look for the POP Download option. Check POP status whether it is Enabled or Disabled. If it is disabled select the appropriate option and click on Save Changes. (We can enable all mails or new mails which are coming after this configuration is done)

RAMANAMURTHYG_3-1727537407899.png

After enabling the POP Download, it looks like this

RAMANAMURTHYG_4-1727537452458.png

3. Now it's time to move to our ServiceNow PDI. In All navigation type Email Accounts (Actual path is All --> System Mailboxes --> Administration --> Email Accounts)

4. Create new email account by clicking New button with the following details.

  1. Name: (any desired name)
  2. Type: POP3
  3. Authentication: Password
  4. Server: pop.gmail.com
  5. Active: true
  6. Username: (your Gmail ID- Complete ID with domain name)
  7. Connection Security: SSL/TLS
  8. Port: 995

Note: To know about Connection security and port https://support.google.com/mail/answer/7104828?hl=en check this Google support page

RAMANAMURTHYG_5-1727537592511.png

 

5. Now it is very crucial to give the password to establish the connection. But we need to remember here, the password should not be our Gmail password. We need to Generate App-specific password from the Google account manager and paste that App-specific password into ServiceNow in this page.

6. Goto https://myaccount.google.com/apppasswords this link

RAMANAMURTHYG_6-1727537665426.png

7. Give the App name (For example ServiceNow) then click on create button. It generates one 16-character App password. Make sure to copy it.

RAMANAMURTHYG_7-1727537694882.png

8. Copy this app-generated password and paste it into our ServiceNow new email account. Save the record. Test your connection by clicking the Test Connection-related link.

RAMANAMURTHYG_8-1727537724220.png

 

RAMANAMURTHYG_9-1727537732902.png

 

9. Tadaa….. Your personal Gmail is now integrated with your ServiceNow PDI. Check from sys_email.LIST (email logs). It may take several minutes to sync (less than 5 minutes).

RAMANAMURTHYG_10-1727537760000.png

 

10. If you want to disable this Connection, you can do it in two ways.

  1. Simply make an active false created Email Account in ServiceNow
  2. Disable POP Download from Gmail Settings

Either way will work to disable this functionality

 

Major Points to Remember:

  1. 2-step verification should be activated for your Gmail account and
  2. Receiving email property should be activated in your ServiceNow PDI (check it from Email Properties)

 

 

Thank you for reading this Article. Please mark it as Helpful, if you feel this article helps

 

Thanks & Regards

Ramana Murthy G - ServiceNow Developer

ServiceNow Community Rising Star 2024

Comments
Priyanka_786
Tera Guru
Tera Guru

Nice Article.

Regards,

Priyanka Salunke

RAMANA MURTHY G
Mega Sage
Mega Sage

Thank you very much @Priyanka_786 

Version history
Last update:
‎09-28-2024 08:38 AM
Updated by:
Contributors