Below is an example of the connection code: (not sure if this is correct or not, but I get an exit message that is connected to CRM)
public void ConnectToMSCRM(string UserName, string Password, string SoapOrgServiceUri) { try { ClientCredentials credentials = new ClientCredentials(); credentials.UserName.UserName = UserName; credentials.UserName.Password = Password; Uri serviceUri = new Uri(SoapOrgServiceUri); OrganizationServiceProxy proxy = new OrganizationServiceProxy(serviceUri, null, credentials, null); proxy.EnableProxyTypes(); _services = (IOrganizationService)proxy; Response.Write("Connected to CRM \n"); }
I need all the data to be retrieved on a button click event.
The result should be: the result is "select * from ABC" ;
if possible, suggest how to retrieve the records using the specified column name.
The output should be: the result is "select * from ABC where ColumnName="test" ;
source share