Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

CRM - How can I know the attributes alias Nam

$
0
0

Hi Guys,

I am trying to create a new Lead after connecting successfully, for a client.

Entity ipsLead = new Entity("lead");
                ipsLead.Attributes["subject"] = crmLeadModel.LeadSubject;
                ipsLead.Attributes["firstname"] = crmLeadModel.FirstName;
                ipsLead.Attributes["lastname"] = crmLeadModel.LastName;
                ipsLead.Attributes["jobtitle"] = crmLeadModel.JobTitle;
                ipsLead.Attributes["businessphone"] = crmLeadModel.BusinessPhone;
                ipsLead.Attributes["mobilephone"] = crmLeadModel.MobilePhone;
                ipsLead.Attributes["email"] = crmLeadModel.EmailAddress;

                ipsLead.Attributes["companyname"] = crmLeadModel.CompanyName;
                ipsLead.Attributes["website"] = crmLeadModel.CompanyWebsite;
                ipsLead.Attributes["address"] = crmLeadModel.CompanyAddress;

                ipsLead.Attributes["description"] = crmLeadModel.Description;

Now, some of the attributes are not correct since it is throwing an error regarding invalid attributes names. Below is an image of a lead in the CRM. 

Now my question is how can I know the attribute alias name for each attribute in order to map from code?

Thanks in advance


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>