Article ID: 123183, created on Oct 17, 2014, last review on Oct 17, 2014

  • Applies to:
  • APS 1.x

Symptoms

What options do I have if I want to send a notification from my APS package to a customer/user?

Resolution

You can pass the environment variable 'SETTINGS_user_email' to configuration script. Such variable can be defined by service settings declaration in APP-META.xml as follows:

<group class="email">
    <setting id="user_email" class="value" type="email">
        <name>Primary email address</name>
    </setting>
</group>

You can review the sample application SampleAPS1.2Package-1.2-1.app. This package has defined 'user_email' setting. In the same manner you can pass the SETTINGS_admin_email variable.

Or in APS 1.x we have classes to tell APS controller which data should be used to automatically populate a setting, for example class="login" provides service user's e-mail, class="given-name" provided the name from the contact.

717db81efe94e616312b74fb03a5d474 978c327986a55270842e3de502d69383

Email subscription for changes to this article
Save as PDF