SalesForce C# Integration ListViewRecordColumn Error

by November 16, 2015 0 comments
If you are trying to integrate SalesForce enterprise service with your c# application, and getting the arrow below, you are at right place.

 {“Unable to generate a temporary class (result=1).\r\nerror 
CS0030: Cannot convert type ‘SalesForceEnterpriseService.ListViewRecordColumn[]’ to 
‘SalesForceEnterpriseService.ListViewRecordColumn’\r\nerror 
CS0030: Cannot convert type ‘SalesForceEnterpriseService.ListViewRecordColumn[]’ to 
‘SalesForceEnterpriseService.ListViewRecordColumn’\r\nerror 
CS0029: Cannot implicitly convert type ‘SalesForceEnterpriseService.ListViewRecordColumn’ to ‘SalesForceEnterpriseService.ListViewRecordColumn[]’\r\nerror 
CS0029: Cannot implicitly convert type ‘SalesForceEnterpriseService.ListViewRecordColumn’ to ‘SalesForceEnterpriseService.ListViewRecordColumn[]’\r\n”}
It’s a simple workaround here:
Just replace the lines in file “Reference.cs ”

private ListViewRecordColumn[][] recordsField;

replace it with:

private ListViewRecordColumn[] recordsField

An Nguyen

Developer

Sharing daily exciting lesson learned and posts about .NET, SQL Server, HTML, Javascript - jQuery, CSS - Bootstrap, SalesForce CRM, Kentico CMS and so on.

0 comments :

Post a Comment