Closed EDUT-Equinor closed 8 months ago
This needs a rework, short summary.
The fusion notifications api is capable of sending emails out of Equinor. But the email must be registered on their account in fusion. Today this is only possible in the contract personnel application. This is not feasible for Castberg fix.
Hardest part of implementaion is testing as it requires whitelisting and database tampering.
The Fusion mail endpoint doesnt support adaptive cards. I made some custom html that im sending to the server
dev context:
A PCS person has an email property which is the preferred email and not necessarily the EQ mail. The fusion Notifications api specifies personIdentifier but after digging into the code its either email or azure oid.
By resolving this email property from PCS we can send an email to the preferred email instead of the EQ mail.