Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...

GCNofity Key: https://portal.azure.com/#@034gc.onmicrosoft.com/asset/Microsoft_Azure_KeyVault/Secret/https://ncdsafsecsurkv01.vault.azure.net/secrets/NotificationPublisherGCNotifyExample

  1. To test locallyYou locally, you need to add values in your secrets.json

...

TEST > https://dev.azure.com/transport-canada/MAACE-Solution and Data Architecture Services/_library?itemType=VariableGroups&view=VariableGroupView&variableGroupId=256&path=NotificationPublisher-TEST

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
}