Customer E-mail Addresses – List

Here’s one for the SQL script vault. As of GP 2018 R2, GP STILL does not provide the customer email address as a field in Smartlist. Here are a few quick options to get what you’re looking for:

Option 1.) SmartList Builder. Create a new report, link the existing view ‘Customer Addresses’ to SY01200 ‘Internet Addresses’

 

Option 2.) Run the following script in SQL (can also deploy as a view and attach a SmartList builder on top)

 

select a.custnmbr       'Customer ID', 
       a.custname       'Customer Name', 
       b.adrscode       'Address ID', 
       b.cntcprsn       'Contact Person', 
       c.emailtoaddress 'To E-Mail Address' 
from   rm00101 a 
       join rm00102 b 
         on a.CUSTNMBR = b.CUSTNMBR 
       join sy01200 c 
         on b.ADRSCODE = c.ADRSCODE 
            and b.CUSTNMBR = c.Master_ID 
            and c.Master_Type = 'CUS' 
order  by a.CUSTNMBR   
Share It
Share It
Tweet It
Picture of Kyle Malone, CPA
Kyle Malone, CPA

Dynamics GP Nut | GPUG All-Star 🏆 | Techo-Functional Consultant

Leave a Comment

Your email address will not be published. Required fields are marked *

30 Dynamics GP Tips & Tricks That You Cannot Live Without

Provide your email and we’ll send you our list of 30 things in GP that will have you feeling like

Send me 30 Tips & Tricks! (absolutely free)

Top-Tier Professional Consulting
Rates Lower Than The Others

Always non-billable introductory / discovery calls

$140 hour which includes ANY/ALL GP services:

  • GP Training
  • Module Implementation
  • Everyday Support
  • Report Development
  • Integration Development

We Want to See You Get Value From Your Investment In Dynamics GP!

Contact Us

ALaCarteGP, LLC | (740) 604-0099 | Madisonville, LA