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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

CRM Online Plugin - Create records using early bound classes

(0) ShareShare
ReportReport
Posted on by 10

I've generated early bound classes using crmsvcutils tool, and need to use them in plugins

the IOrganizationService Create method needs to take an Entity type, 

How do i use it with my early bound types?

heres my code:

cpr_number number = new cpr_number();
number.cpr_numberint = 2;
service.Create(number); //compile error becuase it accepts Entity type 

i want to work with early bound entities, what to do in this situation? 

(i have like 10 more entities to do and it'll be frustrating to type the fields schemas and entity names everytime)

I have the same question (0)
  • Verified answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: CRM Online Plugin - Create records using early bound classes

    Hi,

    I think the process of creating early bound class is not correct.

    Can you please try to generate Early bound class using XRMToolbox too -

    dynamics-chronicles.com/.../xrmtoolbox-presentation-early-bound-generator

    when you check your class for Early Bound, you will see it is getting inherited from from Entity class

    public partial class Account : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Suggested answer
    Nya Profile Picture
    29,060 on at
    RE: CRM Online Plugin - Create records using early bound classes

    Hi,

    Please refer to the following documentations:

    Sample: Create, update related records early bound(Microsoft Dataverse) - Power Apps | Microsoft Docs

    IOrganizationService.Create(Entity) Method (Microsoft.Xrm.Sdk) | Microsoft Docs

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 101

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans