Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Discrepancy in RemoteExecutionContext JSON Structure in Azure Function Webhook

(0) ShareShare
ReportReport
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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 671 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 167 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 138 Most Valuable Professional

Product updates

Dynamics 365 release plans