I am writing a SQLCLR database project, to update CRM from an legacy SQL server. I have had some great help, so far and thank you to everybody.
I am expanding my original procedures but am stuck on trying to pass a Boolean and a date
public static void CreateNewCustomer(SqlString LicenceNo, SqlString CompanyName, SqlInt32 Software, SqlInt32 SoftwareStatus, SqlBoolean HasDD, SqlDateTime DDposted, SqlString DDsortcode, SqlString DDaccountnumber, SqlString DDaccountname, SqlBoolean authorisesubmissions, SqlBoolean payrollclient, SqlBoolean auddisenabled) CONNECTION INFO REMOVED // Add Licence No account.name = LicenceNo.Value; // Add Company Name account.new_companyname = CompanyName.Value; // Add Software account.new_software = new Picklist(); account.new_software.Value = Software.Value; // Add System Status account.new_state = new Picklist(); account.new_state.Value = SoftwareStatus.Value ; // Check Has DirectDebit Mandate if (HasDD = true) { account.new_ddactive = true; account.new_ddsortcode = DDsortcode.Value; account.new_ddaccountnumber = DDaccountnumber.Value; account.new_ddaccountname = DDaccountname.Value; account.new_ddposted = DDposted.Value; } else { } Error 1 Cannot implicitly convert type 'bool' to 'SqltoCRMTest.crmSdk.CrmBoolean' Error 2 Cannot implicitly convert type 'System.DateTime' to 'SqltoCRMTest.crmSdk.CrmDateTime'
Dont ask me .. i dont know