Skip to content

ISE-Neutrino/dataverse-serviceendpoint-sample

Repository files navigation

Dataverse events capturing using Webhook

This repository demonstrate how to capture Events from Dataverse world using power platform Webhook plugin and Azure functions (as webhook implementation) to save events data to Azure storage Table.

image

Prerequisites

**Note:** In the case of using the dev-container and VSCode, all dependencies are already installed.

Get Started

Test locally

  • Clone this repository: git clone https://github.com/CSE-Neutrino/dataverse-webhook-sample.git.
  • Open the folder using VSCode
  • Add your local settings file local.settings.json local.settings.json
  • Update Azure storage connection string AzureWebJobsStorage config to valid connection note: storage emulator can't be used inside dev-container
  • Press F5 to start Azure function host
  • From Azure extension tab on the extensions left bar, right click on Workspace> Local Project> Functions> DataverseEventHandler and click Execute Function Now then file request body run-function

Test on Dataverse and Azure environment

  • Create new Azure function App with Java as runtime create a new function app
  • Deploy function to the newly created function App deploy to function app
  • Update storage account connection string Configuration > AzureWebJobsStorage Update-storage-account-connection
  • Get function url and Access Key from Azure portal Get function Url and Access keys
  • Register new webhook to Microsoft dynamics environment using Plugin registration tool register new webhook
  • Create new Step to handle specific event (update) for dataverse entity (account) register-webhook-step
  • Update dataverse table record using Power platform make portal update-dataverse-table
  • Check data has been created using data explorer on Storage Account > Tables > DataverseEvents storage-account-data

Resources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published