Skip to content

Commit

Permalink
Merge pull request #3205 from MetaPhase-Consulting/TM-7078-tm1-smart-…
Browse files Browse the repository at this point in the history
…email-fix

[TM-7078] TM1 Notification SMART Email Remediations
  • Loading branch information
jlam-mpc authored Feb 5, 2025
2 parents 17bf850 + ef4a8bf commit a1b1c94
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,15 @@ const NotePreview = (props) => {
const xml = generateXML(cable, getPreviewText(), getCableValue('SUBJECT'));
const encodedXml = Buffer.from(xml).toString('base64');

const employeeFullName = getCableValue('EMPLOYEE FULL NAME');
const employeeLastName = employeeFullName.split(',')[0];

dispatch(emailNotification({
to: getCableValue('TO_ADDRESS'),
subject: getCableValue('SUBJECT'),
subject: `(PII) Assignment Notification Cable - ${employeeFullName}`,
body: '',
attachments: [{
filename: `${getCableValue('SUBJECT')}.xml`,
filename: `${employeeLastName}.xml`,
content: encodedXml,
}],
}));
Expand Down

0 comments on commit a1b1c94

Please sign in to comment.