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.
**Note:** In the case of using the dev-container and VSCode, all dependencies are already installed.
- 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
- Update Azure storage connection string
AzureWebJobsStorage
config to valid connectionnote: 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 onWorkspace> Local Project> Functions> DataverseEventHandler
and clickExecute Function Now
then file request body
- Create new Azure function App with Java as runtime
- Deploy function to the newly created function App
- Update storage account connection string Configuration >
AzureWebJobsStorage
- Get
function url
andAccess Key
from Azure portal - Register new webhook to Microsoft dynamics environment using Plugin registration tool
- Create new Step to handle specific event (update) for dataverse entity (account)
- Update dataverse table record using Power platform make portal
- Check data has been created using data explorer on Storage Account > Tables > DataverseEvents