Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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
21 views

CompositeResult.Queries().Add() is not working

I am using force.com-toolkit for .Net and I am trying to create a mock Composite Result for my unit tests. Below is the code snippet: var result = new CompositeResult(); var queryResult1 = new ...
Madhuri Verma's user avatar
0 votes
0 answers
957 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....
Eli Zur's user avatar
0 votes
1 answer
388 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 ...
srijesh nair's user avatar
0 votes
1 answer
61 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 ...
Rick Arthur's user avatar
4 votes
1 answer
1k 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 ...
duck's user avatar
  • 143
0 votes
0 answers
37 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 ...
oflahero's user avatar
  • 101
2 votes
1 answer
919 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 ...
user2855938's user avatar
3 votes
2 answers
4k 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 ...
Laura Bejjani's user avatar
1 vote
0 answers
31 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 ...
user5312272's 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 ...
JP Blonshine's user avatar
0 votes
1 answer
1k 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" ...
Matt Schwartz's user avatar
2 votes
2 answers
1k 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 { ...
shlasasha's user avatar
  • 113
2 votes
2 answers
602 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"; ...
Neil Bostrom's user avatar
1 vote
1 answer
723 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 ...
Dale K's user avatar
  • 125
1 vote
1 answer
226 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 ...
Dale K's user avatar
  • 125
1 vote
1 answer
330 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 (...
Nathan Loding's user avatar
2 votes
1 answer
678 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 ...
Vilius's user avatar
  • 201