user2390956
user2390956

Reputation: 115

Accessing SalesForce custom object Issue

I am trying to call my Salesforce custom object with c#. Name of the object is CommercientSF__SorMasterRep__c but when i try to upsert into it gives me error like

INVALID_TYPE: sObject type 'CommercientSF__SorMasterRep__c' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

It is coming from a managed package. The package is installed & all objects are deployed.

Upvotes: 1

Views: 1932

Answers (2)

superfell
superfell

Reputation: 19040

The name of a custom objects ends with __c (underscore, underscore, 'c'), looks like you only have one underscore in your object name.

For managed packages the object is only available if the user is assigned a license for the package, you should also check the object level permissions in the users profile. Also see the section "Factors that affect data access" in the docs.

Upvotes: 1

Senthil Prabhu
Senthil Prabhu

Reputation: 70

Your wsdl may not have your custom-object (CommercientSF_SorMasterRep__c) included during generation. Verify if Your wsdl has this custom object. If not, regenerate wsdl again and import into your C# project.

Upvotes: 0

Related Questions