Announcements
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)
Hi,
Please refer to the following documentations:
IOrganizationService.Create(Entity) Method (Microsoft.Xrm.Sdk) | Microsoft Docs
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/
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156