50
Views
1
Comments
Solved
adding clickable link in email template broke email design and content
Application Type
Reactive

Hello all,

I'm trying to add a link which opens a web version of the email (opens a screen on browser with the same email contents). But when I add the link, it broke my email design and contents completely (image 2). When I remove the link from the text or disable its visibility, my email looks perfect the way I want. (image 1).

Is this because of something because I can't find any error in the Service Studio.

Before adding link:

After adding link:

Edit:

Apparently, the data is not being sent to the screens. So if there's a link to screen with input parameters, it breaks the email. I tested with a blank screen and it worked properly, but not with this screen that has input parameters.


web version of email, the link is there(I clicked on "View entire message") :

Error message when I clicked "webversion":


Regards,

Aman

2024-04-15 16-08-47
Aman Devrath
Solution

The issue was the data passed was empty. I had used BinaryDataToText() to convert binary data to text when passing from email template to screen, but it was coming as empty. But I don't understand why the layout wasn't shown with empty data (very weird). Also, I had to use RedirectToURL instead of Redirecting directly to screen(again very weird).  It took me 2 hours to understand this and I couldn't find it anywhere, also no help through forum - maybe no one actually knew this issue.

Solution: check if your data sent is empty, use RedirectToURL instead of redirectly directly to screen, also check if proper conversion is happening or not. in my case binary conversion to text was resulting in empty data.

To sum it up : I might have missed something while searching - maybe experts would help me understand here - but as far as I know now, OutSystems has still a long way to go and there are still drawbacks.

Thanks,

Aman Devrath

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.