I am looking for a c# code to get the GUID of a lookup field. This should be a generic code to accommodate any entity.
Following is the scenario.
Need to create a lead from a external web form. In web form Nationality is provided as Text. This text needs to be translated to GUID to add lookup field in the lead form.
What I need a function which receive parameter Lookup table, lookupGUIDcolumnName, and LookupTextColumnName.
eg: Lookup table = crm_nationality
lookupGUIDcolumnName= crm_nationalityId
LookupTextColumnName = crm_nationalityText
Any help is greatly appreciated.
*This post is locked for comments