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

What is the difference between image.Attributes["fieldName"] and image["fieldName"] in plugin?

(0) ShareShare
ReportReport
Posted on by 15

Same as my subject, What is the difference between image.Attributes["fieldName"] and image["fieldName"] in plugin?

For now, Using both them to get or set value are both working in my code. I'm wondering are there any differences in them or does anyone cause lower efficiency or a potential issue?

Thank you.

I have the same question (0)
  • Verified answer
    Roberto Ilidio Profile Picture
    on at

    Hi Chloe,

    I would suggest, as a best practices, to always use image.Attributes["fieldName"], in this way the referenced key get explicit to the compiler, although it seems that compiler sort out both syntax.

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Chloe,

    There is no difference and you can use any syntax you like.

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 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans