+ Start a Discussion


.. Hi, I Am Trying To Retrieve The Saleforce List Views Of Contact Object Through API Here Is The Code I Used
SFDCPartner.ExecuteListViewRequest LvRequest = New SFDCPartner.ExecuteListViewRequest ();
                LvRequest.SobjectType = "Contact";
                LvRequest.DeveloperNameOrId = ListViewId;
                lvRequest.offset = offset;
                LvRequest.Limit = Limit;
                LvRequest.OrderBy = LvobList;

I Am Able To Get Few List Views.  But For Some List Views Which Are Filtered By Campaign Such As...

User-added image
throwing the follwing error

Unexpected error retrieving SFDC contact list view 00B3300000xxxxag. Error: INVALID_FIELD: 
CampaignId = '70133000000xoVN') AND (Status like '%Paged%' OR Status
ERROR at Row:1:Column:400
No such column 'Status' on entity 'Contact'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. Exception Type: System.Web.Services.Protocols.SoapException

I think it is because I am using sobject 'Contact' and couldnt filter by Campaign or Campaign Member. How can we handle this?
Thanks in advance.