Interfacing to Salesforce from the Microsoft .NET Framework.

learn more… | top users | synonyms

1
vote
2answers
17 views

Create a file using .NET toolkit

Is there a way to create a file using the .NET toolkit ? I can't find it when configuring my data services in visual studio 2015. I found Attachment and Document but I heard Attachment will be ...
4
votes
1answer
37 views

How to capture the nested fields on a lead object?

I am using .NET toolkit for integration with salesforce.com One of the queries I have is Select Id, Name, ConvertedOpportunityId, ConvertedOpportunity.Amount , ConvertedOpportunity.Name, ...
2
votes
0answers
25 views

Canvas SDK and server side OAuth (.net)

I am attempting to connect our C# MVC application with Salesforce to use within Salesforce record pages (e.g. opportunity details) and a Visual force page. Using the Force.com-Toolkit-for-NET I can ...
3
votes
2answers
29 views

SoapClient.login requires four parameters

I am rewriting a web app that uses the SalesForce API for .NET 2.0. When I run the app it works using the 2.0 API, so the username and password I'm using must be good (the SoapClient.login method has ...
1
vote
1answer
31 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 ...
0
votes
1answer
39 views

Salesforce Integration Error

We are seeing this error whenever our .net developer is trying to insert a record into salesforce custom object. sObject type 'xyz__c' is not supported. If you are attempting to use a custom object, ...
1
vote
1answer
31 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
48 views

Relationship Query issue

i need your help to understand my problem with a relationship query. I want to get all users with the role "ceo" so i tested the following query in the workbench: SELECT Id,Email,Name FROM User ...
0
votes
1answer
28 views

Salesforce Toolkit for .Net with silverlight 5

I am creating a application with Silverlight 5 in which I have to communicate with Salesforce APIs. Currently I used Salesforce toolkit for .net (version 1.2.1) by I am gettting error after using ...
1
vote
1answer
65 views

Bulk Upsert with Salesforce .NET API

I'm using the Salesforce .NET API to perform upserts of my data. So far I have been doing this by retrieving records I wish to upsert from a SQL backend and then upserting them one at a time. This ...
2
votes
1answer
45 views

Authenticating Salesforce users via JWT against ASP.net Web Application

We are setting up a Salesforce Community and would like our community members to be able to login using the credentials on an ASP.net website for which they have an account and are most likely already ...
-1
votes
1answer
36 views

How to bring salesforce report in .Net website?

I want to display salesforce report/dashboard in my website. or any way to get report data with partner api? Can any one help me? Thanks, Bhavesh
0
votes
0answers
41 views

How to read and verify Signed Request in MVC, ASP.NET?

I am working on Single sign on with .net application with MVC and trying to read request context which will give me signed request. But not getting canvas app context values in asp.net, getting ...
0
votes
1answer
30 views

How do I query notes with SOQL?

If I have the following notes in salesforce: How do I query it with SOQL? I cannot get the data with the following query: "SELECT Body, IsDeleted, IsPrivate, OwnerId, ParentId, Title FROM Note" ...
0
votes
1answer
152 views

System.CalloutException: IO Exception: External server did not return any content

I am trying to make a webservice callout. I am getting the below error. System.CalloutException: IO Exception: External server did not return any content. The webservice is publicy accessible and it ...
3
votes
1answer
56 views

SalesForce Rest API Mapping to .NET object

I have the following C# code:- string query = @"select Unique_Contact_ID__c" + ",Account.Account_Unique_ID__c" + ",FirstName" ...
1
vote
2answers
46 views

Query data with SalesforceSharp

I can extract data from SalesForce with the following code: namespace SalesForceExtractCsv { public class Account { public string Id { get; set; } public string Name { get; ...
0
votes
1answer
50 views

Query timeout - A Task was canceled

I suspect I am getting a timeout running a query but I am not sure how to increase the timeout The query is retrieving about 17,000 records (40 columns per record) My .NET code is as follows:- ...
1
vote
1answer
13 views

Getting/Setting CaseComment Privacy

According to the API documentation, in order to get/set the CaseComment privacy, you need to use the IsPublished field. However, whenever a comment is posted into Salesforce, it always seems to ...
1
vote
1answer
66 views

using C# to send httprequest in order to get access token in SSIS [closed]

How to use Salesforce Marketing Cloud API to connect with my SQL server database. I need to use C# to do HTTP POST request to acquire an access token, but I have no idea how to do it. I need to run ...
4
votes
1answer
103 views

Generated SforceService.cs file from enterprise.wsdl is enormous. How to condense?

I've generated a C# file with classes wrapping the Salesforce Enterprise API by downloading the enterprise.wsdl file from my organization's Salesforce website to my PC, and running .Net's wsdl.exe ...
0
votes
1answer
249 views

Cannot implicitly convert type 'Salesforce.Common.Models.SuccessResponse' to 'string'

I'm attempting to use this Simple console example on github as suggested in this answer here. sorry for coming here so much, I just need to make progress. There is a link of the code that keep ...
3
votes
1answer
94 views

Accessing salesforce data from a VS console app

Ok I have a really basic question. I'm am still very confused trying to use this platform. So I'm asking those types of questions that would not be well received on Stack Overflow. I want to become a ...
0
votes
0answers
22 views

Am I using wrong version of SalesForceAPI? [duplicate]

One of our data Provider who happens to be on SuccessFactor/SalesForce world, gave us SOAP URl to call to work with salesForce. Now, I added the WSDL as a Web Reference and now I have a client to ...
0
votes
2answers
69 views

How do I use SessionID for subsequent requests after successfully logging in

One of our provider has a salesforce system in place and they have send us the URL. I added the reference as a Web Reference since adding it as a Service Reference had some issues. Now, I am able to ...
1
vote
1answer
584 views

Cannot Set LoginResult.serverUrl - UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService

I've been successfully using integrations to the SFDC using c# solution. So far I added the web reference and used it without any issues. But then I started add the Service Refference, by downloading ...
0
votes
1answer
54 views

C# partner wsdl binding.QueryOptionsValue.batchSize not being set

So I have a C# program that does an automated backup of all custom objects in are org in the login method which I have posted below I set the querybatch size private bool login() { ...
2
votes
0answers
45 views

How can I upload data containing DateTime and Boolean values into Exact Target Data Extension

I have written .NET code to upload data into Exact Target Data Extension. My Data Extension contains multiple fields of types Text, Number, Boolean, Date. How can I upload the data with Date and ...
1
vote
1answer
79 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
35 views

Set Login History Application in External .NET Application

Is it possible to set the application in the Login History object when logging in from a external .NET Application? As you can see the application gets set to Browser when its a browser login, ...
2
votes
1answer
46 views

Retrieving events from web services API

I am trying to call the Web Services API to retrieve events using the code examples on the following pages: ...
3
votes
1answer
179 views

programmatically selecting picklist item dependent value

I am writing a program which reads data from CSV text files and attempts to upload data into my organization's Salesforce account. I am writing this console application in C# and with my ...
1
vote
2answers
257 views

.NET, CustomObject named in package.xml but was not found in zipped directory

I have successfully retrieved my package with the metadata api. If I deploy said package with deployOptions.singlePackage=false, I get a successful deployment, with 0 components deployed. I've also ...
0
votes
0answers
97 views

Receiving Callout Exception when calling a .NET service

Background of the service: The service is written in .NET and the service is also IP protected. The issue: The WSDL contains a ref="s:schema" element and a s:any element. I have removed the s:any ...
1
vote
1answer
90 views

Set Organizational ID and record type for created entity

I am using toolkit for .net to create leads, but I was asked to set two more things - Organizational Id and Lead Record Type when creating leads. Those two things don't have their own field, so how ...
2
votes
1answer
33 views

Retrieve available fields of leads with .net toolkit

Well, the title says all, I need to retrieve all available fields of leads? how can that be done using developer tools for .net?
2
votes
2answers
369 views

SOQL query not returning results

I'm querying Salesforce data via the SOAP API using the query : SELECT Id, field FROM User Where field IN ('value1', 'value2', ....'value500'). The above does not return any results, despite the ...
2
votes
1answer
159 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 ...
0
votes
4answers
906 views

Rest API - SOQL Query : Want to get Only Current user's Record

Rest API - SOQL Query : When I Query i am able to get all user's record instead of mine only. Is there any way to filter for get records of current user only.
0
votes
0answers
103 views

A connection with the server could not be established

I am creating a connection to salesforce from Delphi. I am able to login to salesforce and get issue details when doing it as an application. After this I created a windows service to do the login . ...
2
votes
1answer
149 views

Cannot Update empty Fields Using SOAP

I'm using the Enterprise WSDL in .NET and trying to run binding.update(sObject[]) on an Account record that I previously loaded through the SOAP client. Basically, I'm comparing and setting values on ...
2
votes
1answer
955 views

Update Opportunity Using rest API; Error : 400 bad request in response

Example for creating Opportunity : curl https://na1.salesforce.com/services/data/v20.0/sobjects/Opportunity/0AASSFGSEID -H "Authorization: Bearer token" -H "Content-Type: application/json" -d ...
1
vote
1answer
56 views

How do i get SessionID using SingleSignOn enabled account

I have singlesignon enabled account. Using Authentication WSDL we are able to authenticate user now we need our application(C#) to search contact,Open new contact page in salesforce Before ...
0
votes
1answer
295 views

How to query Id of a field/Custom field from standard object using Tooling API in .net

How do I get the Id of the field on Standard object like Account, Opportunity & Custom Object and Custom Field Id using Tooling API in .net.
2
votes
2answers
116 views

Is It Possible to get Field List Using API?

I want SalesForce All Fields List including Custom Fields Using API call. Is It possible using API?
0
votes
1answer
612 views

How to create bulk record using rest API?

Example for creating an Opportunity : curl https://na1.salesforce.com/services/data/v20.0/sobjects/Opportunity/ -H "Authorization: Bearer token" -H "Content-Type: application/json" -d @newrecord.json ...
1
vote
1answer
2k views

Create Opportunity Using rest API; Error : 400 bad request in response

Example for creating Opportunity curl https://na1.salesforce.com/services/data/v20.0/sobjects/Opportunity/ -H "Authorization: Bearer token" -H "Content-Type: application/json" -d @newrecord.json -X ...
1
vote
0answers
172 views

ASP.net HTTP request with patch method

Example for creating Account curl https://na1.salesforce.com/services/data/v20.0/sobjects/Account/customExtIdField__c/11999 -H "Authorization: Bearer token" -H "Content-Type: application/json" -d ...
0
votes
1answer
66 views

How to create opportunity Using Connected App Callback URL

I have used bellow URL to get opportunity list using SOQL Query in .net Web application : token.instance_url +"/services/data/v33.0/query?q=SELECT+Id,Name+FROM+Opportunity" In SQL Query we can write ...
3
votes
2answers
54 views

Run Batchable class from .Net code

I have created a batch apex class and am able to run this from within the developer console using execute anonymous. I want to be able to trigger this batch to run from within a .net program. Is there ...