Hope you are having a good day,
I have a big problem with understanding how can I make a lookup field in a form, from C#. I have been reading a lot about it and I know that I need relationships but I cannot understand how.
Please I need a tutorial or something where I can see how to create it.
PD. I'm using Dynamics 365 free trial, I'm practicing.
Thanks in advance.
Greetings!
Hi Hector,
If you are trying to create a field programmatically, then please have a look at below links.
For creating String, Bool, Int etc fields
msdn.microsoft.com/.../microsoft.xrm.sdk.messages.createattributerequest(v=crm.5).aspx
For creating a Lookup, see below.
msdn.microsoft.com/.../microsoft.xrm.sdk.messages.createonetomanyrequest(v=crm.5).aspx
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156