Questions tagged [force.com-toolkit-for-net]

The Force.com Toolkits for .NET provides an easy way for .NET developers to interact with the Force.com & Chatter REST APIs using native libraries.

Filter by
Sorted by
Tagged with
0 votes
0 answers
77 views

Attaching a file to a 'Case' object via REST API

to start with I have defined this class in C# public class ContentVersion { public ContentVersion(string filePath) { Title = Path.GetFileName(filePath); VersionData = File....
user avatar
0 votes
1 answer
265 views

How to create a Purchase Order record in Salesforce using CreateAsync method in c#

I'm a newbie to salesforce and i want to create a custom Purchase Order record using CreateAsync method of Force.com Tool. I'm successfully able to create a record when i'm just passing the parameter ...
user avatar
0 votes
1 answer
37 views

How do I set the 'Application' from the Force.com-Toolkit-for-NET?

I am using the Force.com-Toolkit-for-NET to send and retrieve data from my Salesforce client. We have two different apps that are using the same login, and on occasion I would like to know which app ...
user avatar
4 votes
1 answer
975 views

Trying to upsert product2 - Method not allowed?

I am using this library in C# to make REST calls to SalesForce: https://github.com/developerforce/Force.com-Toolkit-for-NET I've run into a problem when trying Upsert into Product2. Here is the error ...
user avatar
  • 143
0 votes
0 answers
36 views

Is there a correspondence between the SOAP API's 'sendEmail' and the latest REST API?

I'm trying to replicate the Lightning experience of sending a Contact an email with an email template, using the REST API. It looks like my SOAP chances are better than REST, but I'd like to avoid ...
user avatar
  • 101
2 votes
1 answer
755 views

How to get raw response from .NET force.com toolkit when using QueryAsync

I am struggling to find out why my query throws an exception when I do a specific query. Is there a way to see the raw response from Salesforce or .NET? Query string in itemQueryString is running ...
user avatar
1 vote
2 answers
3k views

The Id field should not be specified in the sobject data

I get the error The Id field should not be specified in the sobject data. when trying to update accounts name. I followed advice from another post about setting the Id to null but I'm unable to ...
user avatar
1 vote
0 answers
21 views

REST API access always returns invalid access when requesting client Identifier

I am using the SimpleConsole Sample AppSettings I've changed the values to the values of the connected app I am trying to connect to as well as the login information. User,Pass,Token. I've reset my ...
user avatar
1 vote
2 answers
2k views

Inserting a Contact from C# using REST getting 400 Bad Request

I an building an API that is essentially the middleware between a portal site and Salesforce. When trying to test and create a contact I am consistently getting a 400 bad request. I have tested that ...
user avatar
0 votes
1 answer
982 views

Outh authenticating with curl, but not with C# client

First, I make a curl call using the following format... curl -v https://login.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=xxx" -d "client_secret=xxx" -d "username=xxx" ...
user avatar
2 votes
2 answers
973 views

Salesforce toolkit for .NET UsernamePasswordAsync hanging

I have this code: public class SalesforceAccess { private static Salesforce.Force.ForceClient _sfclient; public static Salesforce.Force.ForceClient SFClient { get { ...
user avatar
2 votes
2 answers
511 views

Linking custom object to Lead using Force.com Toolkit for .NET

I'm using ForceClient in Force.com Toolkit for .NET to save a custom object with a link to a Lead record. private class Lead { public const string SObjectTypeName = "Lead"; ...
user avatar
1 vote
1 answer
587 views

Force.com Toolkit for .NET : Specify Fields to Update

I don't want to update all fields on the object (Lead/Contact) I am updating, is there any way to avoid that? I am trying to avoid having to pull all the fields from Salesforce just to update them ...
user avatar
  • 125
1 vote
1 answer
186 views

Force.com Toolkit for .NET Custom Field Naming

I'm trying to update an Account record using the Force.com Toolkit for .NET. The Account record has custom fields. I thought the toolkit allowed the [DataMember] attribute to be used, but its not ...
user avatar
  • 125
1 vote
1 answer
295 views

Using Address type with Force.com Toolkit for .NET

I am trying to insert a new Person Account using the Force.com Toolkit for .NET (which is working brilliantly for everything but this so far). The insertion works except for the Mailing Address field (...
user avatar
2 votes
1 answer
619 views

Create Lead using DeveloperForce toolkit for .Net

I am wondering how to use toolkit for .net to create new leads, because most examples I can find on the net are created using wsdl. I want to know what do I need to do before defining lead, hot to ...
user avatar
  • 201