Using different mail-from addresses for each purchase office

You can send requests for quotation from different purchase offices located in different regions, each using its own mail-from address. For example, the purchase office in the USA can use mail-from address noreply@infor.com while the office in France can use mail-from address noreply@infor.fr.

Use case:

  • Use the RFQ document type created earlier.
  • Create two different mail-from addresses and add them to the document type. Based on the name of the purchase office, one of the two mail addresses is used as mail-from address in the email message.

Complete these steps:

  1. Start the Document Types (ttrpi2510m000) session. Select the RFQ document type and open its details.
  2. On the Mail From Addresses tab, add a new Address and specify a valid email address.
  3. Open the details of this new address and add this code to the Condition Expression field:
    if #purchaseoffiename# = "PUR001" then
           return(true)
    endif
    return(false)

    Replace PUR001 with your own purchase office name.

  4. Click Validate to validate the document type.
    A new variable purchaseofficename, is added, which must be mapped to a report variable.
  5. Start the Report Rules (ttrpi2520m000) session.
  6. Select the report rule for report tdpur140101002 and open the details for this report rule.
  7. On the Variables tab, click Refresh Variables, to refresh the variables from the document type.
  8. For the new variable, specify this expression: tdpur100.cofc
  9. Save this record, and click Validate to validate the report rule.
  10. Run the LN session Request for Quotations. Print two Request for Quotation reports for different purchase offices to the Document Output Management device and view the results.