Create an Azure Function for Dataverse Events | PL-400 Exam Preparation

Registration Information for Azure Function Processing Dataverse Events

Question

You create an Azure Function that processes the Dataverse events.

Please select the information that you need to have for your function registration.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answers: A, C and D

The Dataverse provides a way to publish events to external services by using webhooks.

You can register the webhook using the Dataverse's Plug-in Registration Tool and attach it to the Dataverse events.

A webhook provides a synchronous integration and conducts immediate transactions.

.A webhook has three authentication options that users can use for the given endpoint: HttpHeader - includes keys and values in the message header.

WebhookKey - includes the code at the end of the endpoint address.

After you create an Azure Function and are ready to register it as the Dataverse webhook, you need to find the function URL in the Azure portal (Number 1).

WilleresxeyiayV40la:) © Search resources, services, and docs (G+/)

22 Dashboard > Function App > CBFunction > CBFunction

+ CBFunction | Code + Test --
R Function | @

— P Search (Cmd+/) « El save > Discard ©) Refresh CD Test/Run * Upload |) [a Get function URL

- i Qveraew CBFunction \ CBFunction \ function.json Vv
Developer =
: 0
Code + Test 2 "generatedBy": "Microsoft.NET.Sdk.Functions-—3.0.3",
(6) 3 “configurationSource": “attributes”,
£ Integration 4 "bindings": [
@ 5 {
Monitor 6 "type": "httpTrigger",
$ 7 "methods": [
© Function Keys Si ae
8 get",
9 "post"
gg 10 1,
11 "authLevel": "function",
| 12 "name": "req"
13 t
& 14 1,
—_ 15 "disabled": false,
= 16 “ScriptFile*:"..../bin/CBFunction. dll",
&> dy "entryPoint": "CBFunction.CBFunction. Run"
18

°

When you register the Webhook, you need to supply the Endpoint URL (Number 1) and the webhook key value (Number 2) on a registration screen.

A

sb CREATE NEW CONNECTION

vyvvrwrvwrvrovwrweowrewrwryvy

CBTrial x

G RELOAD ORGANIZATIONS (5) REPLAY PLUG-IN EXECUTION

Plugin Registration Tool

@@i VIEW PLUG-IN PROFILE

[3 Register v IQ View >» By Install Profiler g Debug

Registered Plugins & Custom Workflow Activities

@ (Assembly) Adxstudio.Xrm.Plugins

@ (Assembly) Adxstudio.Xrm.Plugins. WebNotification

@% (Assembly) Adxstudio.Xrm.Plugins, WebNotificationUrl
@% (Assembly) Adxstudio.Xrm.Workflow.AssignWebRole
@ (Assembly) Adxstudio.Xrm.Workflow.AzureStorage

@ (Assembly) Adxstudio.Xrm.Workflow.ldentity

@ (Assembly) Adxstudio.Xrm.Workflow.Invitation

% (Assembly) Adxstudio.Xrm.Workflow.UnassignWebRole
@ (Assembly) Adxstudio.Xrm.Workflow.WebNotifications
@ (Assembly) Microsoft.CDS.AdvancedAnalyticsInfra.Plugins
@% (Assembly) Microsoft.CDS.ApplicationUser.Plugins

@ (Assembly) Microsoft.CDS.Catalog.Plugins

be Unregister

© Refresh

Properties Details

P Search

WebHook Registration

Name
Endpoint URL
Authentication

Value

CBFunction

https://cbfun.azurewebsites.net/api/CBFun

WebhookKey

AmwNGYKfjgZezkbF2d2ixziTZwiwPNkOWLNRI

Save

Cancel

v

All other options are incorrect.

For more information about the Dataverse webhooks integration, please visit the below URLs:

When creating an Azure Function that processes Dataverse events, you will need to register your function with Dataverse. During the registration process, you will be prompted to provide certain information. Here is a detailed explanation of each option:

A. WebhookKey value: This is a security key that is used to authenticate requests from Dataverse to your Azure Function. The WebhookKey value should be kept secret and should not be shared with anyone. You will need to provide this value during the function registration process so that Dataverse can use it to authenticate requests to your function.

B. HttpHeader keys and values: HttpHeader keys and values are used to provide additional information about the request being sent to your Azure Function. For example, you might use HttpHeader keys and values to provide information about the content type of the request or to specify custom headers that are required by your function.

C. Endpoint URL: This is the URL where your Azure Function is located. Dataverse will use this URL to send requests to your function when a relevant event occurs.

D. HttpQueryString keys and values: HttpQueryString keys and values are used to provide additional information about the request being sent to your Azure Function. For example, you might use HttpQueryString keys and values to specify additional parameters that are required by your function.

E. Function URL: This is the URL that can be used to access your Azure Function directly. You will need to provide this URL to Dataverse during the registration process so that it knows where to send requests when relevant events occur.

In summary, when registering your Azure Function with Dataverse, you will need to provide the WebhookKey value for authentication purposes, the Endpoint URL where your Azure Function is located, and the Function URL that Dataverse will use to send requests to your function. Additionally, you may need to provide HttpHeader keys and values or HttpQueryString keys and values to provide additional information about the requests being sent to your Azure Function.