Questions tagged [c#]

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

Filter by
Sorted by
Tagged with
15
votes
3answers
7k views

Salesforce Metadata Api/ Tooling Api to build changesets

I was wondering if it was possible to use any of the API's provided by SF to build an external (C#, Java) application to manage building changesets. Building changesets is very tedious when trying ...
6
votes
1answer
9k views

Ensuring my application complies with SSL3.0 being disabled?

I have developed an application in C# that makes use of the Salesforce API via a WSDL and need to ensure that the upcoming disabling of SSL3.0 will not affect functionality. I have never had to do any ...
7
votes
2answers
5k views

Sending a triggered send to multiple To/CC/BCC recipients via the API

I'm working on a console application that uses the ExactTarget API to send out emails. I'm trying to add a CC to the emails but for some reason I can't get it to work. I am basically creating the ...
2
votes
2answers
979 views

Object Reference Error on “Automation” RetrieveRequest

I'm try to do some work with Automations from the Automation Studio using the API. Based on what I read in the documentation I should be able to get use the retrieve method in order to do this. When ...
9
votes
1answer
1k 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 ...
3
votes
2answers
9k 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 result....
8
votes
2answers
13k views

check if sessionid is valid

I'm integrating a desktop app with SF using a c# component. I've created a login screen and can happily access all the fetures i want in my org from the application. The problem i'm having is ...
1
vote
1answer
44k 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 RestClient("https://login....
1
vote
0answers
448 views

ExactTarget, Automations, Folders and API

This is a three-part question: In the Automation Studio, automations are arranged in folders. However, unlike with all other types of objects I have managed up until now with SOAP and Fuel using the ...
8
votes
2answers
4k 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, ...
4
votes
1answer
2k 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 ...
3
votes
1answer
2k views

Bulk delete data extension rows

I am using the C# Fuel SDK for the deletion of rows in a data extension, am I am trying to delete large(ish) volumes of records at once. The sample code only provides details of how to delete records ...
6
votes
4answers
946 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 ...
2
votes
1answer
194 views

Fuel SDK - Subsequent ET_BounceEvent() calls with same parameters returns empty Results

I'm using the C# Fuel SDK to fetch BounceEvents created on a given date. On an initial request, I receive back a GetReturn with a Status of true and an expected batch of APIObjects in Results. However,...
2
votes
2answers
4k views

Retrieving field values from Partner API in C#

I'm attempting to implement a client-side application in C# (Using the mono framework) and the Salesforce Partner SOAP API. I can successfully login, however am slightly confused on how to actually ...
1
vote
1answer
971 views

salesforce .net toolkit relationship query serialization

I created strongly type classes to use when using the toolkit to query salesforce public class SFAccount { public string Id { get; set; } public string Name { get; set; } public ...
0
votes
1answer
523 views

ETClient (401) Unauthorized with SDK C#

I am using Visual Studio 2017, and install SFMC.FuelSDK by using Nuget. I use this: NameValueCollection parameters = new NameValueCollection(); parameters.Add("clientId", "...
0
votes
1answer
831 views

ExactTarget - REST api using HttpClient - C#

I've read along the way that Salesforce (I'm extremely new to this 3rd party platform) has a FUEL SDK which one can use instead of the version (using HttpClient -- REST instead of SOAP). Please ...
0
votes
2answers
380 views

Query 100,000 users from Salesforce

I'm writing a software in C# that need to pull all the information about 100,000 users in Salesforce (Id, Username, all other attributes). I think to use Bulk API for that, it's the best option for ...
0
votes
0answers
248 views

SFMC/Exact Target c# SOAP API - is there a way to assign tracking folders to email send definitions?

I'm creating an email send definition for a user-initiated send with the c# SOAP API library. Is it possible to assign the tracking destination folder through the API? Thanks in advance!
0
votes
3answers
638 views

FuelSDK Endpoints Clarification

I can authenticate the REST API through Postman, but I've tried both the python FuelSDK and C# SDK but I can't seem to get either of them to connect to my instance of Marketing Cloud. I think I'm just ...
0
votes
2answers
1k views

.Net Core 2.0 and async/await Usage [closed]

I'm using .Net Core 2.0 and VS 2017 v15.3.1. I'm trying to test making a Microsoft WCF Web Service Reference test by logging into a Salesforce service using SOAP. I successfully created the service ...