Hi everyone,
I’m working on building a common notification framework in OutSystems Developer Cloud (ODC) and I’ve run into a challenge when rendering dynamic email content.
Scenario:
Problem:
What I’m Looking For:
Additional Context:
If anyone has implemented a similar solution in ODC or knows a workaround, I’d really appreciate your guidance or examples.
Thanks in advance!
Gowtham
Hello, @Gowtham
According to this post from 2024, it's not possible to do it in ODC like it was possible in Traditional.
Three workarounds:
1. Create a Traditional App to send the emails. You can make an API you call from the ODC app or if you use the O11 integration to have access to the O11 entities, you can use a small BPT in O11 to trigger the email send and add a record with the required information to an entity that triggers the email sending from ODC.
2. This may be also useful.
3. Use an external service to send the email (like suggested in the post I mentioned above).
Hope this helps.
Cheers!
In ODC, HTML content from CKEditor is usually rendered as plain text unless the email body is sent with content type text/html. Unlike O11, there is no “Escape Content = False” property. The recommended approach is to store the CKEditor HTML in DB and pass it directly as the HTML body while sending the email. Also, consider sanitizing the HTML before sending for security and formatting consistency.