giacomelli / SalesforceSharp

An easy-to-use .NET client library for Salesforce REST API
MIT License
79 stars 61 forks source link

sObject type 'WorkOrder' is not supported. #36

Open gyh0111 opened 4 years ago

gyh0111 commented 4 years ago

Hi,

I met error. sObject type 'WorkOrder' is not supported. Please help me.

WorkOrder Represents field service work to be performed for a customer. This object is available in API version 36.0 and later.

Regards,

jose-dvm commented 3 years ago

Hi,

SalesforceSharp works with API version 28.0 by default as you can see in the SalesforceClient class. Change the value for ApiVersion property to a newer version after calling the SalesforceClient's constructor and try again.

Hope it helps.

Brains commented 3 years ago

SalesforceSharp works with API version 28.0 by default as you can see in the SalesforceClient class. Change the value for ApiVersion property to a newer version after calling the SalesforceClient's constructor and try again.

Thanks, changing ApiVersion to "v38.0" has fixed

sObject type 'EntityDefinition' is not supported.

for this query:

SELECT   QualifiedApiName 
FROM     EntityDefinition 
ORDER BY QualifiedApiName
Brains commented 3 years ago

Checked that WorkOrder object from https://github.com/giacomelli/SalesforceSharp/issues/36#issue-536757216 is available as well.

The issue can be closed?