Questions tagged [.net]

Interfacing to Salesforce from the Microsoft .NET Framework.

Filter by
Sorted by
Tagged with
0 votes
0 answers
42 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 ...
0 votes
1 answer
46 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, ...
  • 101
0 votes
0 answers
115 views

How to deploy a React .Net Core app in git repository - Heroku

I'm using heroku for the first time! I created a React js .Net Core app in visual studio (with the repository on git), but when I try to deploy it in heroku, this error appears: I have this ...
  • 101
0 votes
0 answers
327 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....
0 votes
1 answer
103 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 ...
0 votes
1 answer
401 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 ...
3 votes
2 answers
736 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 ...
  • 141
0 votes
1 answer
48 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 ...
1 vote
1 answer
223 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 ...
0 votes
0 answers
55 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), (...
  • 101
0 votes
0 answers
96 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 ...
  • 101
2 votes
1 answer
142 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:...
1 vote
1 answer
923 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 ...
  • 57
1 vote
2 answers
3k 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 ...
  • 31
0 votes
0 answers
161 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 ...
1 vote
1 answer
1k 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 ...
  • 127
1 vote
1 answer
190 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 ...
2 votes
0 answers
101 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 ...
  • 62
1 vote
1 answer
2k 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
  • 11
1 vote
1 answer
673 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 ...
  • 2,561
0 votes
2 answers
197 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 ...
  • 57
0 votes
1 answer
89 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 ...
  • 71
2 votes
1 answer
925 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 = "...
  • 69
0 votes
2 answers
164 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 ...
  • 399
1 vote
0 answers
623 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
1 answer
195 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
1 answer
567 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 ...
  • 123
1 vote
1 answer
757 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 ...
  • 57
1 vote
1 answer
255 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
1 answer
78 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
2 answers
500 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 ...
  • 111
0 votes
0 answers
808 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
  • 1
0 votes
1 answer
2k 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
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 ...
  • 143
2 votes
1 answer
927 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, ...
2 votes
1 answer
2k 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 ...
  • 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 ...
1 vote
0 answers
814 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
1 answer
699 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
1 answer
161 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-...
  • 55
0 votes
0 answers
36 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 ...
  • 101
2 votes
1 answer
787 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
1 answer
229 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, ...
  • 111
1 vote
2 answers
207 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.
  • 45
0 votes
1 answer
420 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
0 answers
34 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
1 answer
408 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
1 answer
266 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
2 answers
2k 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 ...
  • 57
2 votes
2 answers
3k 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 ...