AM Journey Custom Email


From within an AM journey (specifically an OTP journey) I need to be able to send a custom email template with some variables. Is there a way / binding in the AM java script to send an email via IDM using one of the templates? Any examples or documentation would be appreciated.


You could use the Email Suspend node to send an email via IDM (if this is a platform integrated environment).

If this is not fitting your usecase, then you can indeed send a REST call to IDM at the external email endpoint [ Email :: IDM 7.5.0 ].
If the deployment is a platform integration, on 7.5, then you can use Scripting Next Generation which provides the openidm object [ Scripting function reference :: IDM 7.5.0 ]
Otherwise, use the httpClient [ Script bindings :: AM 7.5.0 ]