...
In WLMDP application, TimeEntries tab, users can select time entrise entries and submit them for management approval. Once these items are successfully submitted, the respective manager(s) receive an email notification stating that there are new times available in CRSD platform that requires their attention.
...
To test locallyYou locally, you need to add values in your secrets.json
...
Send Notification API in WLMDP:
A good practice is to always separate responsibilities in SDLC.
There is a service class has been implemented in WLMDP named NotificationApiService that contains a function named SendNotificationEmail. This function needs one parameter RequestEmailModel as follows:
public class RequestEmailModel
{
public string EmailAddress { get; set; } // recipient email address
public string TemplateId { get; set; } // templateId obtained from GCNotify account (explained in previous steps)
public string Reference { get; set; } = "";
public Dictionary<string, dynamic> Personalisation { get; set; } // name and value of any custom field in the template
public string ApiKey { get; set; } // Api key obtained from GCNotify
}