Foundations Apex API Developer Reference

fferpcore.ihcc_INotificationText

global interface ihcc_INotificationText extends ihcc_IBusinessLogic

Interface that Integration business logic classes must implement if the integration wants to replaced placeholders in template text. Template text could be the body of an email message, a Slack message etc

This class extends fferpcore.ihcc_IBusinessLogic

Methods

replaceTextPlaceholders

String replaceTextPlaceholders(String notificationText, String messageText)

Method in the business logic called to replace placeholders in the subject and/or body with concrete values. The values will come from the notification messageText. It is up to the integration to handle this (for example if the messageText is JSON decode and extract). IHCC internally provides replacement keys for the other parts of the notification. If the integration does not want to replace anything the notificationText should be returned: if null is returned the subject/body will be empty.

Input Parameters

Name Type Description
notificationText String The subject or body from the template with placeholders in it to replace
messageText String The messageText from teh notification being actioned
© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.