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