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

Problem when using Dynamic Entity

(0) ShareShare
ReportReport
Posted on by 45

Hi!

Help please with this class. 

What should I wrote in #include to use Dynamic Entity class?

Example: 

DynamicEntity myDE = new DynamicEntity();

In console I have this message - DynamicEntity missed directive usage..

And another question - is there another way to change custom Entity using SDK?

I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    DynamicEntity was the syntax used for CRM 4.0, your tag report CRM 2015, you should just use Entity

    for example

    Entity myEntity = new Entity("account");

  • NickGrava Profile Picture
    45 on at

    Great Thnx!!!

  • NickGrava Profile Picture
    45 on at

    Guido, could you give me some example how to work with this class. I need to create new Entity("nav_role") and add 3 attributes( 1- Lookup, 2 - dropdown list, 3 - date).

    Or where I can read about this..

    Thnx!

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