Symptom
When I ran Deny Expired Approval Process, SystemUnenrollmentNotification notification template is generated instead of ApprovalProcessRequestExpired
Environment
SAP SF LMS
Reproducing the Issue
1.Create a Schedule Offering for this Item and add the Item and SO in the catalog so that it can be accessed by the user.
2.Approval Required should be Yes for this Item and SO and an Approval Process should be attached to the Item and SO
3.As a user Assign the Item to the Learning plan after Browsing it from the catalog
4.Request for Registration for the Schedule Offering and now the request goes to the Approver.
5.Edit the Segment of the SO to make it in the past. This is because the APM picks the Approvals for past Schedule Offerings.Note that the Approver has not Approved any request yet. It is still Pending Approval
6.Schedule the APM Deny Expired Approval Processes.
Cause
Configuration Problem
Resolution
When you run the Deny Expired Approval Process, there are two emails which are generated -
1) SystemUnenrollmentNotification because the user was registered but waiting for approval that is why from the application perspective an enrollment also happens even if the expiration of the approval happens. That is why you are receiving this email.
2) ApprovalProcessRequestExpired - Which is intuitive to understand as the expiration has expired the system will prompt you about the same via notification, now this email is not coming in your system reason is a configuration, I have mentioned below -
In the Global variables section there are two properties under Approval Process Settings
1) Suppress final approval email notification for Registrations
2) Suppress final rejection email notification for Registrations
If there two are checked then the user will not get approved or rejected mails for the approvals they have requested but if these are checked then the expiration mails will also not trigger. That is the reason you are not getting the expiration mail.
Keywords
KBA , LOD-SF-LMS , Learning Management System , Problem