Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (24 loc) · 2.22 KB

README.md

File metadata and controls

30 lines (24 loc) · 2.22 KB

FNB.InContact.Parser

A parser for FNB banking InContact emails or SMSs.

Deploy FunctionApp

Getting started

  • Fork this repo
  • Configure your own github action workflows (see the ./github/workflows/deploy-function-app.yml file)
    • Ensure you specify your own value for AZURE_FUNCTIONAPP_NAME
  • Create an Azure Service Bus namespace, the Basic pricing tier is sufficient since you'll only need to create a Queue
  • Deploy your function app and obtain its unique URL for the ReceiveAndStoreSendGridEmail function
    • Be sure to add Application Settings (environment variables) in your function app's "Configuration":
      • ServiceBus: Should be a Service Bus connection string to the service bus with an existing queue (with the same name used in ReceivedSendGridEmailsQueueName above)
      • ReceivedSendGridEmailsQueueName: Queue name it must send/receive messages to/from
      • SendGridApiKey: SendGrid API key with permission to Send Mails
      • FromEmailAddress: From email address that will be used to send weekly reports
      • ToEmailAddress: Recipient's email address to which weekly reports will be sent
      • FunctionAppBaseUrl: Base URL of your function itself to be used when generating weekly email containing a link to view the report
      • FunctionAppReportSecretCode: Secret code that will be used in generated link for GetReportForDateRange function
  • See the SendGrid documentation on how to set up SendGrid's Inbound Parse
    • Use your function app's unique URL as the "Destination URL" of the SendGrid "Inbound Parse" config

Credits

Thanks to: