Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Problem when using Dynamic Entity

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?

  • NickGrava Profile Picture
    NickGrava 45 on at
    RE: Problem when using Dynamic Entity

    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!

  • NickGrava Profile Picture
    NickGrava 45 on at
    RE: Problem when using Dynamic Entity

    Great Thnx!!!

  • Verified answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Problem when using Dynamic Entity

    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");

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans