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
1answer
93 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 ...
0
votes
1answer
22 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 ...
4
votes
1answer
425 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 ...
0
votes
0answers
23 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 ...
2
votes
1answer
336 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 ...
1
vote
2answers
949 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 ...
1
vote
0answers
15 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 ...
1
vote
2answers
1k 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 ...
0
votes
1answer
794 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" ...
2
votes
1answer
615 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 { ...
2
votes
2answers
340 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"; ...
1
vote
1answer
490 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 ...
1
vote
1answer
144 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 ...
1
vote
1answer
223 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 (...
2
votes
1answer
503 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 ...