Questions tagged [.net]

Interfacing to Salesforce from the Microsoft .NET Framework.

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

CDC channel stops receiving messages and never picks back up

Working on integrating Salesforce changes back to SQL server, so we have a cometD connection in our .NET app for listening to changes to a specific entity in salesforce, then we can parse out the ...
Brian McClain's user avatar
0 votes
0 answers
1k views

.NET - subscribe to a platform event

I would like to subscribe to a platform event. I am trying to create a client in C#/.NET for the Pub/Sub API (gRPC). There are examples in other languages but not in .NET : https://github.com/...
CoolCat75's user avatar
0 votes
0 answers
284 views

.NET/C# - Received an invalid SOAP Fault message - Unbound prefix used in qualified name 'sf:INVALID_LOGIN'

.net48 console App soap login error Received an invalid SOAP Fault message: Unbound prefix used in qualified name 'sf:INVALID_LOGIN' Generated the web service from partner wsdl dotnet-svcutil 2.0.3 ...
George Abdelmassieh's user avatar
0 votes
1 answer
151 views

Invalid grant error when do AuthenticationClient.UsernamePasswordAsync()

I have a simple console .NET application with the next lines: System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; await auth.UsernamePasswordAsync(consumerKey, ...
elshev's user avatar
  • 101
0 votes
0 answers
903 views

Attaching a file to a 'Case' object via REST API

to start with I have defined this class in C# public class ContentVersion { public ContentVersion(string filePath) { Title = Path.GetFileName(filePath); VersionData = File....
Eli Zur's user avatar
0 votes
1 answer
156 views

soap api Owner object type changed after updating WSDL file

We have a vb.net app that use the salesforce soap API. The Enterprise wsdl file originally compiled was dating from 2019, so i updated it to the latest version (API Version 50.0). After Updating the ...
MartinT's user avatar
0 votes
1 answer
756 views

Salesforce login using dot net code [closed]

static async Task<loginResponse> SfLogin() { Task<loginResponse> lr = sc.loginAsync(null, userName, password + securityToken); return await lr; } // In the above ...
Anil Yerroju's user avatar
4 votes
2 answers
1k views

Subscribing to a Channel with an Invalid ReplayId?

I am currently in process of building a CDC application in my environment that captures changes and then places them on an Azure service bus for later processing. The way I have the application ...
Tanner.R's user avatar
  • 161
0 votes
1 answer
69 views

Recreating Connected Apps through C#

We have connected apps that I wish to delete and recreate for our deployment process using OAuth2 Register through .Net. I am able delete the app and then recreate it. But if I run the process again ...
jmurphy37's user avatar
1 vote
1 answer
418 views

Unhandled Rejection (Error): No response from server (anonymous function)

I was able to run a conference app. Now I am on Trailhead module "Access Salesforce Data with Lightning Web Components Open Source" In step "Connect to Salesforce" I am trying to ...
SFDC shaikh's user avatar
0 votes
0 answers
92 views

Query running in developer console but not through Force client in .Net

Following query runs fine in developer console and workbench but fails in .Net code which uses Force Rest client: Select Id, Name, (select contact.id, contact.firstname FROM account.contacts), (...
Haris's user avatar
  • 101
0 votes
0 answers
166 views

Salesforce Lead.OwnerId not updating via .Net API wrapper

We have a problem where the OwnerId field on the Lead object is not updating when we try and update it using this Saleforce .Net API wrapper. The following process occurs. New lead is created Lead ...
FryHard's user avatar
  • 101
2 votes
1 answer
191 views

Runtime error when Converting sObject to Account (typecasting)

I'm working on a SOAP integration (.NET C#) to Salesforce and I am facing a problem when I try to get results from Salesforce. To do this I'm using the next example code of the Salesforce walkthrough:...
CrSalesForce's user avatar
1 vote
1 answer
1k views

What is performance gain of using Composite API over Custom Apex REST API?

I want to know whether using Salesforce Composite API will give me any performance gain or not in my scenario. I am not expert in Salesforce and don't know much about Composite API. So, before I move ...
rakesh's user avatar
  • 57
1 vote
3 answers
4k views

How to call an external API from SFMC journey builder?

I'm new to SFMC so would appreciate any help. Is there a way for SFMC to call an external API via the Journey Builder? We need to extend the Journey Builder so that in addition to mobile push ...
LeeH's user avatar
  • 41
0 votes
0 answers
252 views

C# POCO/Proxy classes for Salesforce REST API

I have a newbie question. Is there a tool or utility to generate proxy classes for Sales force objects to use with REST or SOAP Api? Something similar to what Dynamics CRM has XrmToolkit or ...
SamJackSon's user avatar
1 vote
1 answer
2k views

Calling REST APIs from .NET

I have written a tool to get the OAuth JWT Token Bearer from salesforce but do not know what to do next to get my data. The examples in salesforce look easy but they are using curl and I do not know ...
ruedi's user avatar
  • 137
1 vote
1 answer
311 views

How to add Salesforce Id field for records that I am trying to update?

I am trying to update and insert (upsert) a bunch of records into Salesforce. The records are in a json file on my hard-drive. The records are inserted but if they already exist, they need me to ...
Raghu Rao's user avatar
2 votes
0 answers
141 views

Switching career from Salesforce to C# [closed]

I am having 3 years of experience as Salesforce developer. I have been working on around 20 different projects of different size (from small 10 user orgs to the largest orgs in the world) on many ...
x1r15's user avatar
  • 62
1 vote
1 answer
3k views

c# .NET Example of using JWT OAUTH flow with salesforce

Does anyone have an example of the JWT oauth implementation in c#? Thanks https://help.salesforce.com/articleView?id=remoteaccess_oauth_jwt_flow.htm&type=5
John's user avatar
  • 11
1 vote
1 answer
1k views

Standard SOAP API Create method - could not establish trust relationship for the ssl/tls secure channel

I have shared the standard soap wsdl with the third party. Its being used by them to create records in salesforce. They are using .NET to integrate with Salesforce. We are able to create records using ...
Samir's user avatar
  • 2,659
0 votes
2 answers
378 views

Is there a way to get new access token when current session get expired without using Connected App?

I have one Customer's Salesforce Application and one .Net Web Service. I also have Connected App in Salesforce which I am using to generate new token. Salesforce Application calls .Net Web Service ...
rakesh's user avatar
  • 57
0 votes
1 answer
101 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 ...
hyhy15's user avatar
  • 71
2 votes
1 answer
1k 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 = "...
dotname's user avatar
  • 69
0 votes
2 answers
226 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 ...
user28452's user avatar
  • 441
1 vote
0 answers
704 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 ...
user2260382's user avatar
2 votes
1 answer
285 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 ...
Sergei Wallace's user avatar
2 votes
1 answer
842 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 ...
Dia's user avatar
  • 123
1 vote
1 answer
1k 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 ...
rakesh's user avatar
  • 57
1 vote
1 answer
351 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-...
Mark Nadig's user avatar
1 vote
1 answer
104 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 ...
Daniel Bauer's user avatar
1 vote
2 answers
791 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 ...
Tom's user avatar
  • 111
0 votes
0 answers
1k 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
RDC's user avatar
  • 1
0 votes
1 answer
3k 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 ...
crenshaw-dev's user avatar
4 votes
1 answer
1k 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 ...
duck's user avatar
  • 143
2 votes
1 answer
1k 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, ...
Javier García Manzano's user avatar
2 votes
1 answer
4k 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 ...
Danghor's user avatar
  • 23
0 votes
1 answer
1k 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 ...
Javier García Manzano's user avatar
1 vote
0 answers
1k 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 ...
Ben Kiefer's user avatar
0 votes
1 answer
816 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 ...
brandoncluff's user avatar
0 votes
1 answer
180 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-...
aralele's user avatar
  • 65
0 votes
0 answers
37 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 ...
oflahero's user avatar
  • 101
2 votes
1 answer
903 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 ...
user2855938's user avatar
0 votes
1 answer
273 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, ...
birdus's user avatar
  • 131
1 vote
2 answers
229 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.
Adyasha's user avatar
  • 55
0 votes
1 answer
470 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: ...
user46625's user avatar
0 votes
0 answers
38 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 ...
Laura Bejjani's user avatar
2 votes
1 answer
553 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 ...
Chris Halcrow's user avatar
0 votes
1 answer
344 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 ...
Chris Halcrow's user avatar
1 vote
2 answers
3k 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 ...
rakesh's user avatar
  • 57