I am in Visual Studio 2015 and I can connect to Salesforce using the Salesforce.Commmon, Salesforce.Force, and Salesforce.Chatter namespaces, but I can not use the ConnectApi namespace shown here, on salesforce. I have tried to connect to the API, but I cannot find any references that have helped me so far. Can someone explain to me what I have not done yet, and how I can connect?

This is the salesforce toolkit I used to be able to use the Salesforce. directives.

Thank you for any help.


The ConnectAPI documentation you linked to is for Apex. Note that it states:

The ConnectApi namespace (also called Chatter in Apex) provides classes for accessing the same data available in Chatter REST API.

So, in short, the ConnectAPI that you see in Apex is another name for the Chatter API.

Since you are calling into Salesforce from .NET, you will be using the Chatter REST API. This is what the Force.com toolkit for .NET will by wrapping for you.

Most of what you want will be in the ChatterToolkitForNET. On particular, the ChatterClient in the Salesforce.Chatter namespace.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.