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

3
votes
2answers
18 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
23 views

Update row in data extension with SOAP API

I'm having trouble updating a row in data extension. Code I use: int businessUnitID; //Unit ID string dataExtensionCustomerKey; //Data Extension Customer Key DataExtensionObject row; //Data Extension ...
0
votes
2answers
28 views

How to get knowledge article publish via REST?

Reading https://resources.docs.salesforce.com/sfdc/pdf/salesforce_knowledge_dev_guide.pdf It looks to me like it should be possible to publish a master article and settranslation of articleversion ...
1
vote
1answer
19 views

DescribeAsync Method usage using C# .Net API

I need to get the label name from custom object. I'm using the C# .Net SalesForce API and try to use the DescribeAsync call on my Objects. It seems to be working, but I don't know how to parse the ...
0
votes
0answers
37 views

Multiple processes with FuelSDK C# console application

What happens in this scenario? I have a console application called TestConsole that follows this steps using ExactTarget Fuel SDK for C#: create .csv file upload the .csv file to SFTP server (wait ...
3
votes
1answer
39 views

Rest API Save multiple contacts to Task

I'm creating a new Task with multiple contacts and I know the WhoId works for one contact, but what about when you want to attach multiple contacts? Is there anything like TaskRelations available in ...
1
vote
2answers
21 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 ...
0
votes
0answers
24 views

How to call liveagent.startChatWithWindow in C#

I am loading this string in a WebView in Windows Phone 8.1 App using C#: public string html = "<html><head><title></title></head><body><script>window.name = '...
0
votes
0answers
17 views

How to upload files to Salesforce Files Synced from C# using SOAP API?

I want to upload file to Salesforce Files (Files tab -> Synced ->) from C# and also I want to create new folder as well using SOAP API. Can anyone please point me to the document or provide me ...
3
votes
2answers
99 views

How do I do concurrent updates/lock and update records using C#

As I understand it, I cannot use FOR UPDATE keyword when selecting records via Salesforce SOAP API (wsdl) before I update them. How do I make concurrent updates on a record retrieved via API?
2
votes
1answer
40 views

UpdateAsync Force.com SDK

I am having a problem with Force.com SDK for C#. the UpdateAsync function is updating Lead owner automatically every time I update any field on the lead. Here's the code that I am using var success =...
1
vote
1answer
18 views

How to use the apexrest with C# [closed]

I developed a code to generate Accounts from the web in PHP but now I'm in front of a chlange to make it in C# for an emergency here is my PHP code, if you can help me how to do it ..... many thx &...
2
votes
1answer
33 views

Error with basic example C# SOAP API

I'm a little new to C# (okay... very new) I've created an empty website in VS and added a Webforms page (Default.aspx). I'm trying to use the SOAP API to get portfolio information from ExactTarget. ...
1
vote
0answers
28 views

WCF Salesforce SOAP Client switch endpoint

Is there a way to switch WCF client endpoint address after login call? I don't use app.config file: var binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport); var endpoint = new ...
1
vote
3answers
173 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 ...
3
votes
2answers
83 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 ...
0
votes
0answers
54 views

Unauthorized error when sending SMS from Marketing Cloud MobileConnect messageContact API

I am trying to send an SMS to a phone number using an exacttarget messageContact API Post. I successfully get an auth token from my getAuth() call but I still get an 'Unauthorized' error when trying ...
1
vote
1answer
65 views

Getting Attachment Id with subquery using rest api in c#

Hey guys i am trying to get attachment Id in a subquery via the rest api in c# here is my query: SELECT Id, Name, First_Name__c, Middle_Name__c, Last_Name__c, (SELECT Id FROM Attachments WHERE Name = ...
1
vote
1answer
43 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 ...
2
votes
0answers
43 views

Create campaign, mails and schedule the send to subscribers lists with FuelSDK C#

I'm trying to schedule the sent of some mails with the FuelSDK (C#) in ExactTarget, but the documentation is really scarse and I'm not even sure how to begin. Basically what I have is a structure like ...
0
votes
1answer
63 views

Get all automations that exist using SOAP using C#

Goal: I'm attempting to get every automation in the system available to me under my account using the SOAP API in C#. It's also part of this guy's question. I know this has been asked but this is ...
0
votes
0answers
45 views

No such column 'Description' on sobject of type Lead

I have created a connected Web App written in MVC, and we have functionality which allows users to Create a Lead within the web app. I am using the latest version of the Developerforce Nuget package ...
0
votes
0answers
26 views

Exact Target: Using FuelSDK to send email to a campaign in salesforce

How do I access Salesforce campaigns as a recipient source while sending email using Exact Target FuelSDK C#?
0
votes
0answers
52 views

ExactTarget - Automation - SOAP API deserialization

When using the C# library and SOAP to retrieve an automation, the AutomationTasks property will always be null even though the SOAP envelop of the response actually contains the AutomationTasks Node. ...
0
votes
0answers
85 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 ...
0
votes
1answer
53 views

Is there a way to get email notification when Email Send Definition is performed and Send job is complete?

Note: I am using FuelSDK with C# For example, When Import Definition is completed there is an option to receive email notification showing that import was successful and if there is any error then it ...
1
vote
1answer
35 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 ...
2
votes
1answer
22 views

No access to portal

I am trying to add a "Customer Community Plus User" profile user with the Salesforce .Net api. I have not done any configuration changes to this profile. //Try to add user with a contact Salesforce....
0
votes
0answers
23 views

sending bulk email by c# class library

Our requirement is to upload the excel data in sales force and send email to that excel uploaded email filed with dynamic design template .is there any code document available with c# class library
0
votes
0answers
36 views

Consume REST Service SaleForce Outbound Message

Hi I am sending my data to my endpoint url via this apex class, I have written a trigger on update in account. How will i consume it on my end ? Is there some example where i can make a rest service ...
0
votes
1answer
42 views

Receiving timeout from ET_SentEvent object when filtering by EventDate

I'm using the ET_SentEvent object to get data after a particular date and the only field I can see that is of any use in this object for filtering by date is the 'EventDate' field. I've written this ...
0
votes
1answer
33 views

How can I retrieve the ID of an email that was sent

The results from an ET_SentTracking call don't appear to mention what the email ID was that was sent, how do I get that data using the Fuel SDK in C#.
2
votes
1answer
68 views

Chimera Scanner testing server with no login credentials

I've been looking into the Chimera Security Scanner and it mentions that you have to provide test credentials and the URL of your service and, Chimera will handle the rest. The only issue that we ...
2
votes
1answer
57 views

How to query userlicences that have remaining licenses

I need to identify licenses that have remaining licenses. Referring to UserLicense object, I need to write a query to retrieve license that returns where (TotalLicenses - UsedLicenses) > 0. I am ...
1
vote
0answers
29 views

Send User-Initiated Email using Fuel C# SDK with Data Extension and Publication List

I would like to send a user-initiated email using API calls through the Fuel C# SDK. The user-initiated emails have been set up using the UI and data extensions are used for the addressees. I chose to ...
0
votes
1answer
36 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
0answers
16 views

Not recieving the correct LastDateModified

I have an c# app that updates a field in Salesforce. Using the same binding, and just after the Update, I'm doing a select of this field for see the new "LastModifiedDate" but I'm not getting it ...
1
vote
0answers
25 views

c# api to salesforce

My app does queries to the SF, after a select I got some objects, when I do this: string id = Object.Id; User a = Object.CreatedBy; I can see how the "id" variable give me the Id of the record ...
2
votes
1answer
128 views

Implementing sObject.get(String fieldname) when using the Partner API

Recently I have been trying my hand at using the SOAP API (C#) to automate a data-migration between two SFDC instances. Because the destination instance is still being built, I am trying to use the ...
1
vote
2answers
50 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
2answers
36 views

Error on retrieve() in salesforce soap api using c#

I need to retrieve records of Lead based on lead id,then I used retrieve() in salesforce Soap api and it shows error {"INVALID_FIELD: \nLead\n ^\nERROR at Row:1:Column:17\nmalformed ...
0
votes
0answers
49 views

Problem encountered while binding Salesforce with .NET C# using Partner wsdl

I am trying to bind my .NET solution with Salesforce. I want to fetch Lead informations based on a particular email ID. I have added partner wsdl as web service reference with the name ...
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
78 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 ...
3
votes
2answers
133 views

Determine if instance has Multi-Currency Enabled

Is there a way to check if an instance has Multi-Currency enabled through the API? I know that when enabling Multi-Currency, a CurrencyType object and multiple other fields are added on to each object....
4
votes
1answer
114 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
32 views

API c# doesn't insert number fields

I have an app that create news account in my SalesForce. All the fields are okay, unless the number fields, "int" and "double", don't throw any kind of error, just doesn't appear in SalesForce. Some ...
1
vote
1answer
285 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 ...
1
vote
0answers
20 views

Warning with newtonsoft.json version

I'm attempting to connect a C# console app with Force.com using a connected service. I'm totally new to this framework and am really groping in the dark, so please bear with me. First up I need to ...
0
votes
0answers
43 views

Is there a way to Retrieve the subscriber status on the “All subscribers” list/ master subscriber list

This code: APIObject[] Results; string requestID; RetrieveRequest rr = new RetrieveRequest { ObjectType = "ListSubscriber" }; var sf = ...