Questions tagged [.net]

Interfacing to Salesforce from the Microsoft .NET Framework.

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

Unable to Publish KnowldgeArticle using Soap API

I have the exact same issue reported in the following link: SOAP API to Publish Knowledge ARticle Even at version 50.0 of the SOAP API, trying to set the "PublishStatus" to "Online"...
0
votes
1answer
35 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
1answer
114 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
2answers
184 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 ...
0
votes
1answer
34 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
1answer
79 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
0answers
33 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), (...
0
votes
0answers
35 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 ...
2
votes
1answer
96 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
1answer
493 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 ...
1
vote
2answers
1k 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 ...
0
votes
0answers
74 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
1answer
423 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 ...
1
vote
1answer
70 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
0answers
81 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 ...
0
votes
1answer
560 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
1
vote
1answer
376 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 ...
0
votes
2answers
52 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 ...
0
votes
1answer
81 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
572 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
104 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
521 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
134 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
267 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 ...
1
vote
1answer
464 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
193 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
58 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
373 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
575 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
1k 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
770 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
795 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
1answer
1k 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
892 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
578 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
572 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
125 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
27 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
599 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
171 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
173 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
371 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
33 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
298 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
254 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
1k 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
2k 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
136 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
396 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 ...
8
votes
1answer
260 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 ...