How to play an embedded video in email notification using sys_attachment?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 11:53 PM
I have a requirement in which an user can add a video as an attachment to an HR Task and that video should be visible in a notification that is triggered after the HR Task is completed.
In the notification I used an email script that takes the sys id of the attachment and creates an embedded video, the only problem is that I cannot play the video. Please see the screenshot attached. The code used to add the video:
var video = '<video controls="controls" width="100%" height="200"><source src="/sys_attachment.do?sys_id="' + attachSysID + '"type="video/mp4"/> </video>';
Could you please let me know how can I add the functionality to play the video?
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 11:55 PM
Hi @Carmen112 ,
Create a dummy record in the instance and attach a video to it. Now, this attachment is captured in the sys_attachment table.
To use sys_attachment as the source for video, navigate to the sys_attachment table and capture the sys_id of the attached record.
Go to the corresponding HTML field where video to be inserted, use the below video tag in HTML source and provide the sys_id accordingly. Based on the need, the width and height of the video frame can be adjusted by changing the values.
<video controls="controls" width="100%" height="150">
<source src="/sys_attachment.do?sys_id=[Sys ID of the attachment goes here]&view=true" type="video/mp4" />
</video>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 11:58 PM
Hi Sandeep,
I already did that, but the video cannot be played, you can check the image attached.
Do you know how can I make it playable?
Thank you!