web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

change in data between Unified and Classical view

(0) ShareShare
ReportReport
Posted on by 12
I'm trying to debug a plugin in Dynamics 365 on-prem v9.1.13. In a specific code block, I'm dealing with two variables: targetEntity and relatedEntity. In the Classical view, let's call the values of these variables X and Y respectively. However, in the Unified view, their values seem to swap, meaning targetEntity becomes Y and relatedEntity becomes X. Additionally, I noticed that the context variable also differs slightly between the two views, despite the exact same event being triggered in both cases. Can someone explain why this swapping of values is happening between the Classical and Unified views, and why the context variable shows differences even though the events triggered are exactly same?

Here is the code block that I am concerned about :
 

var targetEntity = ((EntityReference)context.NativeContext.InputParameters[/Target/]);
var relatedEntity = ((EntityReferenceCollection)context.NativeContext.InputParameters[/RelatedEntities/])[0];
 

 
Here is the change in the context between the Classical View(left) and the Unified View(right):

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 98

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 60 Super User 2025 Season 2

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans