// Get the lead entity record Entity lead = (Entity)context.InputParameters["Target"]; // Retrieve the value of the 'fullname' attribute of the lead entity string fullname = lead.GetAttributeValue("fullname");
//Create a new contact entity and retrieve the value of custom field Entity contact = new Entity("contact"); contact["new_employeeid"] = "123456"; string empId = contact.GetAttributeValueThe System Entity GetAttributeValue method is part of the Microsoft.Xrm.Sdk.dll package library in CRM SDK.("new_employeeid");