QuestionQ256

Extend the platform

An organization uses plug-ins to retrieve specified information from legacy data stores whenever a new order is submitted.

You review the Microsoft Dataverse analytics page and find that the average plug-in execution time is rising.

You need to replace the plug-in with another component while reusing as much of the existing plug-in code as possible.

Which five actions should you carry out, in sequence?

Drag & Drop
Refactor the plug-in logic in the app.
Create an Azure Function app.
Register a service endpoint for the app in the Plug-in Registration tool.
Create an Azure Logic app.
Register a step in the webhook.
Register a webhook for the app in the Plug-in Registration tool.
Publish the app.
Register a step in the service endpoint.
Explanation

To move plug-in logic to an Azure Function while reusing existing code, you first create the Azure Function app so there is a project to host the code, then refactor the existing plug-in logic into that app, and then publish it so it is reachable over HTTP. Dataverse invokes external code through a webhook, so you register a webhook for the published function in the Plug-in Registration tool and finally register a step (message/entity trigger) on that webhook. The automated key had the order backwards by refactoring before the app existed; you cannot refactor logic into an app that has not been created yet.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!