Hi AppSheet Team,
I’m reporting a bug related to the email body preview functionality within bots.
Description of the Bug
When creating a “Send an email” task in a bot, if the step name contains an ampersand character (&
), the “Preview” button for the email body fails and leads to an error page.
ApSheet only shows this: https://eu.appsheet.com/template/home/notfound
Steps to Reproduce:
-
Create a new bot or edit an existing one.
-
Add a process with a “Send an email” task.
-
Name the step with a title that includes an ampersand. For example:
Send Email for Path 1 & 3
. -
In the task configuration, go to the “Email Body” section.
-
Click the “Preview” button (the eye icon) to view the generated email template.
Expected Behavior:
The email body preview should be generated and displayed correctly, showing how the template will render with sample data.
Actual Behavior:
An error page is displayed. The system is unable to find the requested page because the URL generated for the preview is malformed.
Analysis / Root Cause:
It appears the root cause is how the preview URL is constructed. The URL includes the step name as a query parameter, like this: https://eu.appsheet.com/template/previewemail?appId=...&taskName=Task%20for%20send%20email%20for%20Path%201%20and%203&version=...
Because the ampersand (&
) is a special character used to separate parameters in a URL, its presence in the taskName
value corrupts the URL. The system incorrectly interprets the &
in the step name as the start of a new parameter, breaking the link.