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,...
Answered

Different Between Entity.["attributeName"] and Entity.Attributes["attributeName"]

(0) ShareShare
ReportReport
Posted on by 30

Hi,

I have been going through some of the documentation for writing plugins in CRM and I saw that sometimes an entity's attribute is accessed with entity["attributeName"] = x ,but some other times it is accessed with entity.Attributes["attributeName"] = x. I tried to find the different between the two, but I couldn't (I'm most likely not using the good wording). Could someone explain to me the difference between the two and when I should use each one? 

Thank you

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Those 2 are the same and entity["x"] is the short version of entity.Attributes["x"].

  • dev2143 Profile Picture
    30 on at

    Thank you very much

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
Tom_Gioielli Profile Picture

Tom_Gioielli 73 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

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

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans