Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [.net]

Interfacing to Salesforce from the Microsoft .NET Framework.

0
votes
1answer
13 views

ASP.net calling Salesforce webservice to upload attachment

i have a website created using ASP.net and i would like to allow people to upload files from the website and i want those files is then store in Salesforce. I am not good in webservice but i think ...
2
votes
1answer
39 views

JWT Token always expires after 'exp' provided in the claims

I've tried implementing a JWT Bearer Token Flow. I followed the documentation on here. The code is originally in Java but I managed to adapt it to c# as the code below shows. String header = "...
0
votes
2answers
39 views

Delete AccountTeamMember

We have .Net service which does CURD on account team members for a given Account. Whenever there is a change in the role of the members/person moved from one account to another, the service will ...
1
vote
0answers
95 views

SOAP API Implementation using .NET CORE

We are trying to migrate this SOAP API call from .NET to .NET CORE. Kindly help on creating .NET Core client code/proxy class using this file - https://webservice.exacttarget.com/etframework.wsdl ...
2
votes
1answer
29 views

How can I setup a scheduled sync from a SQL Server database to Salesforce Big Objects?

What is the best way to have a daily scheduled insert/update of a SQL Table into Salesforce Big Objects? We currently have a C# adapter to update Salesforce standard object records with SQL database ...
2
votes
1answer
52 views

Cannot get salutation field from contact via REST API

I am using force toolkit for .net to get contact fields. I make a soql query like: SELECT Id, FirstName, LastName, Salutation FROM Contact One of my contact has a salutation field set to Mr. like ...
0
votes
0answers
41 views

I have the problem with the integration of the fuelSDK with .net

NameValueCollection parameters = new NameValueCollection(); parameters.Add("authEndPoint", "https://auth.exacttargetapis.com/v1/requestToken?legacy=1"); parameters.Add("clientId", "####...
1
vote
1answer
156 views

How to check whether Apex class with specific name exists or not using C#.Net?

I have one .Net web service which is used by my Salesforce application. I have used different Salesforce APIs to interact with Salesforce. Now, I have created one REST Service in my Salesforce ...
1
vote
1answer
54 views

sobjects describe label displaying a different label

I'm using the toolkit for .net and am making a soobjects/{type}/describe request to get the fields for a given entity. See code for "DescribeAsync" in https://github.com/developerforce/Force.com-...
1
vote
1answer
24 views

Upserting to Object from VB and getting Invalid Field does not match externalid, but it does

I have a vb.net console app that is pulling info from a database, and upserting it to a Salesforce object. Here is the error I'm getting: INVALID_FIELD: Field name provided, Product2 does not ...
1
vote
2answers
116 views

Changing WSDL breaks client

I have auto-generated a C# client from a WSDL (https://eu7.salesforce.com/setup/build/generateEnterpriseWsdl.apexp). This works fine until someone changes the structure of one of the tables I'm ...
0
votes
0answers
200 views

the remote server returned an error (401) unauthorized SalesForce

I just wrote the code in ETClient (401) Unauthorized with SDK C# but the error remains. What should I do? I am using .NET 2015 and the FuelSDK Thank you
0
votes
1answer
190 views

“Unable to create/update fields: Address” - but permissions look fine [duplicate]

I'm attempting to add a Lead using the SOAP API via .NET. I receive this error: Unable to create/update fields: Address. Please check the security settings of this field and verify that it is ...
4
votes
1answer
354 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 ...
2
votes
1answer
450 views

Creating a new sandbox using the Tooling API with .NET

I'm trying to use the Tooling API in order to create new sandboxes via a Console application in .NET, with C#. So far I've been able to authenticate with the partner wsdl and perform overall queries, ...
1
vote
1answer
368 views

How to retrieve FieldSets and their fields of an object via the API?

I work on a .NET program retrieving some metadata of a given Salesforce org via the API. I have already managed to retrieve a list of all standard and custom objects in my salesforce org via the REST ...
0
votes
1answer
314 views

Login to Salesforce SOAP API with .NET

At the moment I'm merely trying to achieve authentication and some very basic things, but I keep stumbling upon the same exception. I have inserted both the CallOptions and the LoginScopeHeader as ...
1
vote
0answers
222 views

Trying to update picklist values of a controlled picklist results in “You must specify either picklist, globalPicklist, or valueSet.”

I'm trying to use the metadata api to do related picklist configuration. My customer wants it to be very simple (config via the UI is too difficult for them) so I'm making a .net program which allows ...
0
votes
1answer
286 views

Retrieving a RequestToken with .NET Core in C# using FuelSDK

I'm trying to write a small SFMC API so that I can integrate it with our SQL server. After a few hours of failing to get this working in a SQL procedure (which would be ideal) I decided to give .NET a ...
0
votes
1answer
57 views

Salesforce app stopped authenticate

I have C# application which running on daily bases for the last 18 months. The application access SalesForce using 3rd party DLL which I find in GitHub - https://github.com/developerforce/Force.com-...
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
261 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 ...
0
votes
0answers
69 views

Can't login to sandbox using SalesforceSharp

When I try to login to my sandbox using SalesforceSharp, I'm getting the following error message: InvalidGrant: Authentication Failure Here's what I've done: Pass in the username, password, ...
1
vote
2answers
126 views

Push data from a website developed in .net to salesforce

I want to push data from a website developed in .net to salesforce. I have heard of Rest Api.But dont know how to implement that.
0
votes
1answer
215 views

SoapAPI to retrieve DataExtension Data

I am using .netCore to connect to exactTarget api using soapClient. The method exposed in .netCore for soapClient is "RetrieveAsync". How could I send the request object? This is how i connect: ...
0
votes
0answers
32 views

Reading Multiline Description Field and Adding Fields to a SQL Database Depending on the Description Field Values

Here's what I'm trying to do. Select Cases Where Status = New. Read the multiline Description field. Add the Case Id, Subject, Description to the database requests table. Depending on the Description ...
2
votes
1answer
113 views

Salesforce SOAP API using .NET - FieldSpecified = false, data not being entered into Salesforce

I'm using the Salesforce API via a web service in a .NET solution. I can successfully add an entity to Salesforce, and all of the cost related information is successfully added. When I try to do the ...
0
votes
1answer
231 views

Salesforce Sandbox API, using .Net web service - Please use TLS 1.1 or higher [duplicate]

I'm getting this error when trying to connect to the Salesforce sandbox API via a .NET SOAP webservice, when using IIS 10. None of the other similar questions I've found on Salesforce Stack Exchange ...
1
vote
2answers
635 views

How to login to SSO enabled Org using API in .net application?

I have created one .net desktop application to fetch some data and metadata from Salesforce. So, this application first ask for the salesforce username and password to login and once log-in is ...
1
vote
2answers
780 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
1answer
121 views

.Net application to run Apex TC through tfs build system

I am currently automating a salesforce application using selenium and apex TC. We use the salesforce Soap api and enterprise wsdl for our DML and SOQL updates, queries, etc. We are also using the ...
1
vote
1answer
200 views

Publish Status Rest Api call Fails with Not Found

I am running into a strange problem and hope someone can help me to solve it. In my .NET code I making a REST API call to get a publish status after calling publishAsync, which returns a statusId. I ...
9
votes
1answer
223 views

Salesforce email says I'm connecting via TLS 1.0 but that protocol does not appear in login history

I received an email recently that reads: Your org has been identified as having users or integrations still connecting to Salesforce using TLS 1.0 encryption protocol during the month of ...
5
votes
1answer
4k views

How to be sure API calls are using TLS 1.2

We are using .Net to make web service calls the Salesforce API. Is there a way to know for sure that the calls are using TLS 1.2? Are there any API logs or records of the protocol is use in Salesforce ...
2
votes
1answer
1k views

Call REST API From .net application

I have below code to fetch account details from salesforce using REST API. But i am getting bad request status in the response(400). Could you please help me on this. using System; using System....
2
votes
1answer
866 views

TLS 1.2 Using Partner wsdl

I have been using the Partner wsdl to connect to SalesForce from my C# application for a few years. When I found out that SalesForce was turning off TLS 1.0, I did some reading and found out that ...
4
votes
3answers
300 views

Make Salesforce alert my program when a certain change happens

I've successfully got the .NET c# toolkit running and I can talk with API by posting queries and getting accounts, cases etc. printed, which is very nice. This is what I want to achieve: When a user ...
1
vote
1answer
71 views

How to pass Lightning experience service url to ASP.NET app?

Okey so I have an ASP.NET app which I've put in the web tabs in Salesforce in classic view everything is fine the service url works. However, when I open the tab in the lightning experience the url in ...
0
votes
1answer
895 views

Custom objects not accessible via REST API

I'm currently developing a solution using the DeveloperForce tooling for .NET. In Salesforce, I have created a custom object CustomObject which has the API name CustomObject__c. When using the same ...
1
vote
1answer
503 views

Bulk API client for .NET

I am looking for SalesForce Bulk API client to perform big data load/upload. Currently I am calling api manually building/parsing csv files, building request xml. Looking for more convenient way to ...
1
vote
1answer
1k views

Asp.Net integration with salesforce ApI and Post data into salesforce lead [closed]

I am new to salesforce and trying to integrate basic windows app with click to sales force lead. I some how done my research successfully connected to salesforce API my next step is to load data into ...
2
votes
1answer
530 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 { ...
3
votes
2answers
22k views

Simple SOAP Example in C#

I am experimenting with creating a SOAP connection to Salesforce using C#. I am using the sample code in SOAP API Developer Guide (PDF pages 22-28). It says it uses "A .NET 3.0 style reference uses ...
1
vote
1answer
687 views

Syncing a Custom Object with Foreign Key relationship via REST-API and .NET-Force-Client

In our company's Salesforce we have a list of accounts with an External ID (External_ID__c). And we have a custom object Event (i.e. Event__c), also with an External ID (Event_ID__c) used and managed ...
0
votes
0answers
437 views

Why does SOQL-Query to Custom Object fail?

I have created a custom object in our Salesforce, named Event with the API-name Event__c. It has fields Name__c and Description__c. I would like to perform a query on that object by firing the ...
3
votes
1answer
492 views

What are Best Practices for Upserting Objects with Foreign Key Members (i.e. References to Other Objects)

I want to upsert objects through the .NET-ForceClient into our Salesforce, more specifically, I want to insert or update an object that contains a reference to another object. As a simple example, ...
1
vote
1answer
218 views

Automatic timezone conversion when using DeveloperForce.Force

I noticed that when I run a SOQL query via DeveloperForce.Force (.NET), the results produced have all the DateTime fields converted in the local time zone. That is the local time zone and not the time ...
1
vote
2answers
259 views

Updating an Account with Current Timestamp

I have created several custom fields for our Accounts in Salesforce. One is called "Date and Time Latest Login". Each Account also has an ID (in Salesforce) and an "External ID" which references our ...
0
votes
1answer
296 views

Cannot access custom field tied to custom object using SalesForce API in C#

I've seen similar questions posted on this subject, but none of them seem to contain answers to my specific question. I have an object in SalesForce to which I have created a reference in Visual ...
1
vote
0answers
95 views

API.Session_ID not invalidated after user has logged out from salesforce

I need some help on understanding the salesforce session behavior. I created a web tab pointing to .NET application which is opened within salesforce in Iframe. I'm passing the API.Session_ID value in ...