Custom email address from expression - Value when importing to different environment is hard coded and not dynamic.

We have the following issue:

We have a Custom email address configured as follows:

<?xml version="1.0" encoding="UTF-8"?>
  <emailConfig>
    <addresses>
      <address name="appianTask">
        <emailAddress>
            <expression>=toemailaddress(user(cons!VT_EMAIL_ADDRESS_CUSTOM_SENDER, "email"))</expression>
        </emailAddress>
      </address>
      <address name="appianInfo">
        <emailAddress>
            <expression>=toemailaddress(user(cons!VT_EMAIL_ADDRESS_CUSTOM_SENDER, "email"))</expression>
        </emailAddress>
      </address>
    </addresses>
    <collections>
      <collection name="from">
        <items>
          <item>appianTask</item>
          <item>appianInfo</item>
          <item>process</item>
          <item>processModel</item>
          <item>processInitiator</item>
          <item>processDesigner</item>
        </items>
      </collection>
    </collections>
  </emailConfig>

This is used within a process for the Send Mail smart service. The problem is that when we export the process that uses the smart service, the email address for appianTask or appianInfo is hard coded in the xml file for this process, so before deploying to ACPT or to PROD we need to manually change this file and replace the email address with the environment specific.

Is there a way to do this without having the "From" email address hard coded ?

  Discussion posts and replies are publicly visible