Notification Templates in SOLIDWORKS PDM 2023
Article by Michael Nwachukwu updated May 19, 2023
Article
SOLIDWORKS PDM Professional 2023 added a number of exciting enhancements that will help improve usability, performance and security. One of these SOLIDWORKS PDM 2023 enhancements was the introduction of a new feature that allows administrators to customize notification templates for a vault. This helps to display information that is more relevant to the user.

In order to do this, you must have Can update mail configuration administrative permission checked off – as shown below. You can customize notifications only for files and not for items and Bills of Material (BOMs).

You can customize templates for the following file operations:
- Added
- Changed State
- Checked In
- Checked Out
- Delayed in State

You can edit the subject and body of the template in HTML format and also use variables in the notification message.
You can also export templates. To export:
- All templates – Right-click the Notification Templates node and select Export.
- File templates – Expand Notification Templates, right-click File Notifications, and select Export.
- The template for a file operation – Expand Notification Templates > File Notifications, right-click a file operation, and select Export.
After editing the HTML template, check the preview to ensure it is what you expect to see.

If any undesired changes are made, there is a reset button that will return the template back to the default.

There is also an option to load in HTML files with the “Load from file” button. This can be useful if the PDM Administrator would like to save time by using premade templates from an external source.

Example of Customized Notification Templates
Here is an example of using a variable in the body text with a real notification from the vault.

“Description” variable added to HTML Body

Check In Notification

Data Card Description
Example HTML Code to Change Format

Here is sample code that has a different color for the HTML header, text and buttons, an icon and borders for the buttons:
") into curly “smart” quotes (“ ” or ‘ ’), which SOLIDWORKS PDM does not support. If the formatting looks wrong, replace all quotes with standard straight quotes.<html>
<head>
<style>
/* Keep CSS conservative for MSHTML/IE */
body {
margin: 0;
font-family: Segoe UI, Tahoma, Geneva, Verdana, Arial, sans-serif;
background-color: #eef3fa; /* simple solid bg instead of gradient */
color: #333;
}
.card {
background-color: #ffffff;
max-width: 640px;
margin: 20px auto;
padding: 16px;
border: 1px solid #e5e5e5; /* use border instead of box-shadow */
border-radius: 8px; /* IE can handle simple radius */
}
.header {
background-color: #FFA500;
color: #ffffff;
padding: 12px 16px;
text-align: center;
font-size: 20px;
font-weight: 600;
border-radius: 8px 8px 0 0;
}
a {
color: #FFA500;
text-decoration: none;
}
.actions {
text-align: center;
margin-top: 10px;
}
.button {
display: inline-block;
margin: 8px 6px;
padding: 9px 14px;
background-color: #FFA500; /* solid fill; reliable */
color: #ffffff;
border: 1px solid #FFA500; /* visible border */
border-radius: 6px;
font-size: 14px;
text-decoration: none;
}
hr {
border: none;
height: 1px;
background-color: #ccc;
margin: 16px 0;
}
</style>
</head>
<body>
<div class="card">
<div class="header">
<!– avoid emoji if it renders oddly; or use for spacing –>
📢SOLIDWORKS PDM Notification
</div>
<p>
Document <b><a href="%url_open%">%vaultname%%filename_with_path%</a></b> has been
<b>added</b> by <b>%user% (%fullname%)</b>, %timestamp%.
</p>
<hr>
<div class="actions">
<a class="button" href="%url_view%">View</a>
<a class="button" href="%url_openfolder%">Open Folder</a>
<a class="button" href="%url_properties%">Properties</a>
<a class="button" href="%url_history%">History</a>
</div>
</div>
</body>
</html>
Want to learn more about PDM 2023 enhancements? Some of the best highlights were Copy-Paste Static Text, Custom Tool Tips, User Fields for Button Controls, Remove Task Host Servers, Revoke Access for Multiple Users, and more, check out the highlights in our article and video here and download the full enhancements guide.
Related Links
Want to do more with SOLIDWORKS PDM?
Our Certified SOLIDWORKS PDM Experts can help you to:
