Posted: 18 Aug 2015 3:36 EDT Last activity: 24 Aug 2015 9:16 EDT
Customisation of correspndence
I am going through the Correspondence lesson, my question now is i have a property whcih contains the HTML text and i want it to be used in my correspondence, and when i am using it has to display in correct format.
My property :<p>Your <<.ServiceName>> Request <<.RequestID>> is completed</p>
Expected : Your RPG Request RPG-12345 is completed
Actual:<p>Your <<.ServiceName>> Request <<.RequestID>> is completed</p>
As you notice above whatever is in the poperty that is being displayed, i agree that is the default behaviuor , but i just wanted to know if we have a way how we can achieve using the HTML text.
I want the correspondence rule to detect the property does not contain any static text but HTML text according to whcih the template has to be formatted.
I'm confused as to why you want to store the entire paragraph in a property, when you could write it in the correspondence rule using the rich text editor. This would allow you to apply the formatting you've indicated so far (just the <p> tag), and resolve the individual property references.
Is there a specific reason why you used a property to store the contents of your correspondence?
The reason why we want to do is, in future if there is any requirement change to the template, we need not modify the correspondence rule and do a code drop which will be a cost to business, we want to simply update the DB table having this property with the modified template .
Posted: 6 years ago
Posted: 20 Aug 2015 11:39 EDT
Henry Cortinas (corte)
Global Tech Enablement, Principal Instructor - LSA
A much better approach would be to delegate the Correspondence Rule to a Power Business user in Production and then allow the Business to Modify the Correspondence Template as the Business Requirements evolve. The approach described of using a database table to maintain the template violates Best Practices and will likely make the Application both more difficult to maintain and costly to upgrade in the long run.