Questions tagged [.net]

Interfacing to Salesforce from the Microsoft .NET Framework.

Filter by
Sorted by
Tagged with
0
votes
0answers
30 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
69 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
160 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
477 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
41 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
193 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
53 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
59 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
0answers
233 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
181 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
42 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
62 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
378 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
80 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
459 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
96 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
161 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
350 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
146 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
49 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
319 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
422 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
484 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
576 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
701 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
904 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
623 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
455 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
474 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
108 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
492 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
125 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
154 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
317 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
240 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
249 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
1k 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
131 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
319 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
250 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
6k 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 ...
3
votes
1answer
3k 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
1k 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
363 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
90 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
2k 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 ...
0
votes
1answer
108 views

How to get current time of logged in Salesforce user using Salesforce API?

I have a C# .NET Windows application. I am using the Partner API to interact with Salesforce. I want to get the current date and time based on logged in user's timezone in my .NET Windows application. ...