C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, procedural, generic, object-oriented (class-based), and component-oriented programming disciplines.

learn more… | top users | synonyms

1
vote
0answers
25 views

Find the field is mandatory or not

I am developing an application for Salesforce integration. My requirement is to get all the validation rule and Mandatory fields from Lead category like we have lead status as mandatory in salesforce ...
1
vote
2answers
68 views

Solved! Update Salesforce records from .Net(c#) based on SQL query

I need to update some Salesforce records from .Net(c#) based on the SQL query. Below is my table (vendors in sql). I need to update Salesforce Object(NRProducts__c) with the data in the SQL. The ...
0
votes
1answer
38 views

Update Salesforce record from .NET using Enterprise WSDL

For those who are looking for an example to update salesforce records from .Net(c#) Here is an example: I am trying to update a field(TestAccount__c) from the object Account in Salesforce, I have the ...
2
votes
1answer
73 views

Retrieve session ID using OAuth Authentication

I am implementing salesforce in my ASP.Net application and currently I am able to have login process as Username & password but now I want to change it to OAuth authentication. So i am able to get ...
1
vote
1answer
29 views

How to login and get a list of accounts from C#

I am trying access the Salesforce API from an external application. I've done the following: I've gone to the API tab and generated the WSDL. I then ran the .NET framework's WSDL tool to generate ...
1
vote
1answer
40 views

Retrieve Installed packages using partnerWSDL

I am creating an application for Salesforce Integration. I am trying to retrieve the installed packages from a particular account as I am able to do by using APEX class but now I want to retrieve the ...
1
vote
1answer
32 views

Updating a field to empty string

I'm trying to update a custom field. It's called Name2 which is filled using the enterprise soap api. Now I have an object where Name2 is set to __TEST__. Now I want to update this field to contain ...
1
vote
1answer
13 views

Not getting Lead Class inside PartnerWSDL

I am integrating Sales force in ASP.NET application so here I am using PartnerWSDL for integration but when I quering SOQL language for Lead then how can I retrieve the data from that because I am ...
0
votes
1answer
24 views

Updating field issue

This is my Code, It modifies the inner text, pulls the correct inner text but doesn not save. Am I missing something? String queryString = "SELECT Comments__c FROM ts2__Application__c WHERE ...
0
votes
0answers
190 views

INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session

I am integrating salesforce in my asp.net application. I am using partner WSDL from my account lets say I am having a developer account XYZ@gmail.com and I have downloaded partner WSDl from that ...
0
votes
1answer
37 views

Information about WSDL in salesforce

I am integrating salesforce in my ASP.NET application and I am bit confused with the WSDL file they are having. My requirement is like I want to make an ASP.NET so that it can support all the ...
0
votes
0answers
17 views

Retrieve LeadSource, Leadrating using Apex

I am integrating Salesforce in to my ASP.NET aplication. I am trying retrieve the default lead Source, lead rating and industry from users account. If I am using SOQL query like "select LeadSOurce ...
2
votes
1answer
49 views

Scheduled Send API method works for 1 account, but not another. Any guesses as to why?

I've been trying to troubleshoot a Delayed (scheduled) Send function on an email campaign managing program that I have inherited maintenance of. The method in place for these Scheduled Sends works ...
3
votes
1answer
41 views

Check managed app is installed or not

I am integrating Salesforce with ASP.NET application using APEX code. Currently I want to know how can I fetch either the particular managed app is installed in this account or not. As I am not able ...
0
votes
0answers
29 views

Add custom field in Activity Section

I am integrating salesforce in my application and got struck at one point how can we create a custom field in Activity (Calendar event) using C#. Currently I am able to create the custom field in ...
0
votes
1answer
32 views

Make request using Access_Token in WSDL

I am using Enterprise WSDL for salesforce integration. Currently I am able to authenticate user with salesforce account and able to get the Refresh_Token & Access_Token successfully. Can any one ...
1
vote
0answers
57 views

(C#/API) DescribeSObjects call returning only 250 fields

When calling describeSObjects on any sObject that has more than 250 fields, I am only receiving back 250 fields and I am not sure what to do about it. I know that there is a hard limit on the number ...
0
votes
1answer
67 views

.net How to update value of a field

public void MssSetClientComments(RCSForce_SessionRecord ssSessionToken, string ssSearchesId, string ssComment, string ssContactId) { String queryString = "SELECT Comments__c FROM ...
1
vote
2answers
132 views

MALFORMED_QUERY: unexpected token: UPDATE

String queryString = "UPDATE Comments__c " + "SET Comments__c = Comments__c + '" + ssComment + "'" + "FROM ts2__Application__c " + ...
0
votes
2answers
44 views

Salesforce Case Creation

Ok this is a stab in the dark but I figured I would ask here since i'm not sure when my salesforce ticket will be answered. This is also live not sandbox. Here is the error "A workflow or approval ...
4
votes
3answers
78 views

How access to field from second table in joint statement

I try to join 2 tables in SOQL that I am using in C#. not sure how get the value from second table that is contact table. This is my query: SOQL = "select Name,FirstName,LastName,BillingCity,Id, ...
8
votes
2answers
257 views

How to pass a variable to the SOQL where clause?

I am using Salesforce API with C#. In the query that I am writing I am not sure how to pass a parameter to the select statement. My query works when it looks like this: SOQL = "select AuthorId,Name, ...
2
votes
0answers
38 views

Unique Custom field in Custom Field in Salesforce not getting created using metadata api

I am creating a unique custom field in Salesforce Lead Object Here is the working code that i have written CustomField cf = new CustomField(); cf.unique = true; ...
1
vote
1answer
39 views

Authorize in my app as salesforce user

I have an asp.net website. I want to give an access to my website to the users, that are already authenticated in salesforce. According to the tutorials, i should use OAuth or something similar, but i ...
1
vote
0answers
66 views

Salesforce REST API Time-out after 4 callouts

Good day. I really need help on this issue. I have tries every possible option here. I use the Salesforce REST API using C#. The works 100% fine but after a couple of calls out to SF i keep on ...
3
votes
1answer
111 views

How do I revoke a Salesforce.com token from a .NET app

This should be easy, but it isn't. I have a .NET app were users sign in to salesforce.com using REST, logging in works fine, I'm getting back the session Id and proceed without problems. But when the ...
3
votes
3answers
97 views

Upsert INVALID_FIELD

I have a custom object which is a child object of Account. Account has an external ID field called Customer_ID__c. I have the following C# code which worked fine as a regular "create" when I was ...
1
vote
1answer
70 views

Update Business Unit Subscription List - Unsubscribe Subscriber from List

I have the list in my business unit. There are lots of subscribers. I need to be able to change the opt in opt out preferences for any subscriber from API call. I found the next article ...
8
votes
1answer
105 views

Which API should I use to perform periodic data synchronizations (other than streaming)?

I have the need to synchronize the data in certain Salesforce tables (user, account, opportunity, lead, task, contact, etc.) to a local database. For reasons that I won't go into here, I can't use the ...
0
votes
1answer
526 views

“unsupported_grant_type” error when trying to authenticate

I am using the following code to try to get an authenticate. This is in C#, using the RestSharp library: public string GetAuthToken(string code) { var client = new ...
2
votes
1answer
53 views

Learning resource or documentation for salesforce xamarin sdk

I am reviewing salesforce xamarin sdk , Gone through the sample app accounts. Need more learning resource about the c# classes, methods for Salesforce namespace. So that I can implement more ...
3
votes
2answers
68 views

How can I select group Name and count of FeedPost

I want to get (select) VersionData field of ContentVersion Table with C#. It is possible? I can select the other fields in the table, but I failed to select VersionData. There is a blocking of ...
1
vote
2answers
1k views

salesforce chatter api call examples C#

Can any body provide me with some sample calls for Salesforce data by REST API. I have googled a lot but nothing found helpful. I have signed up with sales force chatter. Can i retrieve my data ...
0
votes
1answer
385 views

Get Started With salesforce api in .net mvc

Am in need to use salesforce API as my new project requires salesforce integration. Am very new to this and gone through some tutorials and set up till : sign up to sales force developer portal. ...
5
votes
1answer
242 views

SalesForce Batch Compression Unexpected Error

In SalesForce' Bulk API, on page 60 of their documentation: Compression The only valid compression value is gzip. Compression is optional, but strongly recommended. Note that compression ...
2
votes
1answer
1k views

How to perform upsert in SalesForce Bulk API in C#

I have created a class with which I can insert, update and delete records from SalesForce using their bulk API. I have searched the web and have come across various resources; but I cannot seem to ...
1
vote
1answer
188 views

Add contact to Salesforce 'Contact Manager' edition via API?

I'm new to Salesforce, and working on an integration task which involves adding contacts to Salesforce from an existing system and keeping them in sync (one way; contacts updated in existing system ...
2
votes
1answer
575 views

Return more than 2000 records (SOQL)

I'm trying to retrieve a list of Account objects from Salesforce using SOQL. Originally my query was this: var result = service.query("SELECT Id, Name, RecordTypeId FROM Account"); return ...
0
votes
0answers
236 views

Can't set RecordType

I'm writing a tool to sync data from a data source into Salesforce. I'm trying to set the RecordTypeId on the Account object which I can do successfully in code, but doesn't appear in Salesforce when ...
2
votes
2answers
184 views

Determine sobject Type From Id Using SOAP API

I'm using C# and would like to determine the type of an sObject based on it's id. I would like to pass an id to my app and have it return a list of accounts related to it. I need to identify the ...
9
votes
1answer
566 views

Converting between .NET decimal and SFDC decimal

We have a .NET app that interfaces with SFDC via a web service. When we import the WSDL the resulting classes will use the .NET type double wherever SFDC entities use a double. The problem I see here ...
0
votes
1answer
117 views

Web Api - binding.query returning html

Im building a component to extract data from SF using C#, however when i execute the query i just get HTML returned and the following error: Client found response content type of ...
7
votes
5answers
1k views

Can't log user in on SOAP API

I have added the IP to SalesForce and tried appending the security token to the password and checked that the user's profile has API enabled but still no luck. The user account can log in fine using ...
1
vote
1answer
89 views

Can a user with limited access query from SOAP api?

So we have the exact same fields in the Sanbox and Production, however, when I run a select statement from the SOAP api, I am told a certain field is invalid. I confirmed it is not invalid. The only ...
3
votes
2answers
492 views

MALFORMED_SEARCH error with SOQL query in C# application

when I run this SOQL query via the Developer Console it works... SELECT Id FROM Event WHERE Subject LIKE 'Order%Created' or SELECT Id FROM Event WHERE (Subject LIKE 'Order%Created') But when I put ...
1
vote
4answers
1k views

How do I consume workflow outbound messages?

I'm working on integrating a record update in Salesforce into a third party application. My plan is to create a service using the ASP.NET Web API that listens for requests from Salesforce. I'm ...
-1
votes
1answer
614 views

How to Get / Update an existing attachment using C#

Is possible to Get / Update an existing Attachment using C#? If it is can any one share some sample code or resources?
1
vote
1answer
611 views

Examples of using queryAsync in SOAP API?

I've been looking around online for examples for using queryAsync() in the SOAP api, but I can't seem to find any. Can someone using Async calls using the SOAP WSDL api in C#?
1
vote
2answers
222 views

Am I understanding how Api sessions work correctly?

So I'm using the C# SOAP api w/ OAuth. User A logs in, does something that will take 60 seconds User B logs in 10 seconds into User A's process, and finishes in 5 seconds User A cannot make another ...
3
votes
1answer
336 views

Using the SOAP api with OAuth

I want to start using OAuth with my SOAP api bindings, however my app it a process that runs using a single user's credentials, therefore there is no need for a callback url. Is it possible to use ...