- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Contact email address in sales order entry
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-10-2009 07:48 PM
Does anyone know of a method using custom office to force the email address in the header section of sales order entry to default to the email address of the contact that is looked up in the "confirm to" field, rather than the default email address from customer maintenance?
Many clients have multiple contacts at their customers to whom they must email sales orders. Currently, paperless office is set to "Use email address in data entry." This requires users to hand-enter the email address for the contact on the sales order. Having this email field populate automatically from the contact record would be much easier. The same applies for fax numbers.
If this can't be done with custom office, is anyone aware of an existing Providex enhancement that provides this functionality?
Thank you,
Evanoff Business Software, Inc.
Email: larry@evanoff.com
Website: www.evanoff.com
Re: Contact email address in sales order entry
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-10-2009 09:38 PM
Larry, You can try entering the contact email address in the contact name field. This would allow the contact email address to be in the confirm to field. You should be able to write a script to copy the confirm to field to the email address.
Re: Contact email address in sales order entry
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-11-2009 10:04 AM
I have been told by Sage that email addresses copy from the ship-to address, not from the contact. I have 2 customers that wish it would bring in the email address from the contact, not from the ship-to address.
If your business permits it, and it works out, you can add the contact's email to the ship-to address.
I would suggest submitting this as an enhancement request.
It is possible to add a script to the S/O header panel to pull the email address from the contact and populate it into the contact email address. (This assumes that there aren't multiple contacts for the same customer with the same name.)
Dawn
Re: Contact email address in sales order entry
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-14-2009 11:48 AM
Re: Contact email address in sales order entry
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-14-2009 11:59 AM
Evanoff Business Software, Inc.
Email: larry@evanoff.com
Website: www.evanoff.com
Re: Contact email address in sales order entry
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-15-2009 04:14 PM
I haven't created a script yet; just said it was possible.
Dawn
Re: Contact email address in sales order entry
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-30-2012 07:36 PM
I know this is an old post but here is the code for v4.4. The contact key is not available, so you have to connect via ODBC. I've used the regular SOTAMAS90 driver here and the code requires a username and password, but a silent DSN could be used too.
Dim strConnectionString, objCN
Dim oContact, sConfirmTo, sCCode, sDiv, sCustCode, sEmail
Dim company
company = MAS_SCR_CMP
user = "hollie"
pw = "hollie"
'initialize the variables
sConfirmTo = ""
sDiv = ""
sCustCode=""
sCCode = ""
sEmail = ""
'retrieve the required values from the order
retval = oBusObj.GetValue("ARDivisionNo$", sDiv)
retval = oBusObj.GetValue("CustomerNo$", sCustCode)
retval = oBusObj.GetValue("ConfirmTo$", sConfirmTo)
'connect to the MAS 90 database via ODBC
strConnectionString = "DSN=SOTAMAS90;UID="+user+"|"+company+";PWD="+pw
Set objCN = CreateObject("ADODB.Connection")
objCN.Open strConnectionString
Set objRS = CreateObject("ADODB.Recordset")
strSQLQuery = "SELECT * FROM AR_CustomerContact WHERE ARDivisionNo = '" & sDiv _
& "' AN CustomerNo = '" & sCustCode _
& "' AND ContactName = '" & sConfirmTo & "'"
Set objRS = objCN.Execute(strSQLQuery)
Do While Not objRS.EOF
sEmail = objRS.Fields("EmailAddress")
objRS.MoveNext
Loop
if sEmail <> "" and not isnull(sEmail) then
retval = oBusObj.SetValue("EmailAddress$", sEmail)
end if
objRS.Close
objCN.close
Set objRS = nothing
Set objCN = nothing
Hollie


