Skip to content

IG-989 - Add json output attachment to email to custodian

Susheel Varma requested to merge IG-898 into dev

Created by: RobinKavPA

PR

Attach .json representation of the email payload supplied to custodians on submission of a DAR application to provide a 'dirty' integration for custodians who will continue to use their own systems for managing requests.

Solution

  • Extended email generation function to export json along with html body, included DAR unique identifier.
  • Converted json directly into Base64 encoded string to attach to the SendGrid email using memory buffer rather than the filesystem alternative of saving to server directory to then attach the file.
  • Updated email builder to support attachments.
  • Attached the json to the email using the friendly unique ID for the DAR concatenated with the current date time for filename.

Merge request reports