Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Discrepancy in RemoteExecutionContext JSON Structure in Azure Function Webhook

Posted on by 5

Hello,

I’m currently working with Dynamics 365 webhooks and Azure Functions. I’ve set up a webhook in Dynamics 365 that triggers an Azure Function via an HTTP trigger. The webhook sends a JSON representation of the RemoteExecutionContext object in the request body to the Azure Function.

According to every answer I found, the JSON structure of the request body object should directly map to the RemoteExecutionContext class in .NET. However, I’m noticing some discrepancies in the JSON structure I’m receiving in the Azure Function.

For example, the InputParameters property is coming in the format {/key/:/Target/,/value/:/Entity/EntityReference/}, whereas I was expecting it to be {/Target/: /Entity/EntityReference/}.

I’ve managed to work around this issue by creating a custom class that matches the incoming JSON structure and deserializing the JSON into this custom class. However, I’m curious as to why there’s a discrepancy between the JSON structure and the RemoteExecutionContext class in the first place.

Has anyone else encountered this issue? Any insights into why this might be happening would be greatly appreciated.

Thank you!

P.S. The error I was receiving when trying to parse or deserialize the body to the RemoteExecutionContext class was related to /OwningExtension.keyattributes/ key in the object which I assume means it successfully passed the lines before it which include the key/value part I mentioned above

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans