We use APM to email most of our documents to our customers but we are struggling to use the Supplier Contact Email address to enable POs to be sent by email through APM.
We are on 9.05.702a and Doc-Link version 2.7.46.
I am not sure if it is Crystal that is not showing the correct field or whether it is APM not picking up the correct data?
Typically, you would setup the report to have the key email field, supplier contact, in the footer with a white font or other methods to hide it from showing on the printed version. APM would be setup to read that field and you can add logic to detect if it is missing and perform actions to remediate the missing email address. APM would be the best place to check for what is going wrong and review what field is being captured to send the email and then review the report to make sure that is the correct field.
I ended up using a Crystal formula similar to the one below for APM on a PO form.
if {VendCnt.EmailAddress} = ‘’
then {Vendor.EMailAddress} else {VendCnt.EmailAddress}
Depending on your database, you may need to play around with the VendCnt.EmailAddress condition check.
i.e. use the vendor email IF VendCnt.EmailAddress = empty string OR NULL.
Sarah
We have it working well here, but are running Epicor 10.1.500.10 and Doc-link 3.0.48. Which is using SSRS not Crystal. The logic in the SSRS report is populating the correct email address to be used on the form. I don’t know if that helps at all, but APM is using what is supplied on the report. In 10.1.500 the Primary Supplier contact is what is populated to the standard form without any modifications.
[/uploads/default/original/2X/6/641a56d3f0c53c190b6959c1bfe771a1a379190c.png]
Sarah,
I have this working for a client for emailing PO’s.
The key is that APM can only use what is rendered on the document, so if all the APM formulas are setup right, some common things to check:
is the email field on the document within the margins?
BIG ONE! Make sure the PO has a contact actually selected on the PO Header. This is something that still catches a few people today when they setup a new vendor they either forget to create a contact, or set a contact as primary or set a primary contact on each PP. The PO Header will automatically set the PO contact to the Supplier Primary Contact or the Supplier PP Primary Contact. With one client when they started to use APM they didn’t have any Supplier Contacts marked as Primary, so they had a lot of issues, but once a primary contact was set for each supplier and purchase point it works very well.
Having said that, you can have APM setup different ways to find the email address, same for the Crystal Report, you can have formulas like those mentioned in this post to switch to another value if the PO does not have a contact specified.
Coming back to my problem in August, I think I have found what the issue is. The database field name is VendCnt.EmailAddress, but this field is not available on the Crystal form, i.e. it is VendorCnt_EmailAddress.
Therefore could it be the Crystal Form that is incorrect?
Should I post again under Crystal rather than APM?