Questions tagged [.net]

Interfacing to Salesforce from the Microsoft .NET Framework.

38 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
835 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, ...
3
votes
1answer
140 views

Why are deleted Emails retrieved with the rest? Is there a way to filter them off?

So, I'm doing a retrieve for all the Emails from our account, but the result also retrieves contents that were previously deleted. Does anyone know of a Email Object Property that I can use to filter ...
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:...
2
votes
0answers
196 views

Canvas SDK and server side OAuth (.net)

I am attempting to connect our C# MVC application with Salesforce to use within Salesforce record pages (e.g. opportunity details) and a Visual force page. Using the Force.com-Toolkit-for-NET I can ...
2
votes
0answers
128 views

How can I upload data containing DateTime and Boolean values into Exact Target Data Extension

I have written .NET code to upload data into Exact Target Data Extension. My Data Extension contains multiple fields of types Text, Number, Boolean, Date. How can I upload the data with Date and ...
2
votes
1answer
142 views

Set Login History Application in External .NET Application

Is it possible to set the application in the Login History object when logging in from a external .NET Application? As you can see the application gets set to Browser when its a browser login, would ...
2
votes
1answer
569 views

Batch-sends based on triggers using TriggeredSendDefinition

Here is my questions: Possibility to use a different lists to be associated with the triggered type of sends in Exact target? Every time at least one subscriber has to be associated for the ...
2
votes
1answer
74 views

How to send an image from SFDC to .net application on the click of a button in .net

I have a requirement to show an image in .net application by making a query on Salesforce. As a work around, i did write a simple webservice call in SFDC, but at the .net end I am getting the URL of ...
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 ...
1
vote
1answer
196 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 ...
1
vote
0answers
462 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 ...
1
vote
0answers
467 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 ...
1
vote
0answers
129 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 ...
1
vote
1answer
37 views

Getting/Setting CaseComment Privacy

According to the API documentation, in order to get/set the CaseComment privacy, you need to use the IsPublished field. However, whenever a comment is posted into Salesforce, it always seems to ...
1
vote
1answer
349 views

How do i get SessionID using SingleSignOn enabled account

I have singlesignon enabled account. Using Authentication WSDL we are able to authenticate user now we need our application(C#) to search contact,Open new contact page in salesforce Before ...
1
vote
0answers
474 views

ASP.net HTTP request with patch method

Example for creating Account curl https://na1.salesforce.com/services/data/v20.0/sobjects/Account/customExtIdField__c/11999 -H "Authorization: Bearer token" -H "Content-Type: application/json" -d @...
1
vote
0answers
84 views

SendMail() from .NET custom html combined with templateId

Is there any way to use sendMail() via SOAP API but combine using VisualForce template within Salesforce and passing additional an object to it or additional html from my .NET app. At present I'm ...
1
vote
0answers
2k views

Need Help: Consuming WCF service within Salesforce

I am hosting an ASP.NET web service on a web server which communicates to a legacy SQL server. This web service is to be accessed by Salesforce. I've created the wsdl and imported it into Salesforce (...
1
vote
0answers
146 views

Manage Outbound Messages of multiple object in same .net project

I am working on an integration project, i have a different web service project for each object ie. account, opportuntiy, contact and some custom object. using System; using System.Collections.Generic;...
1
vote
0answers
28 views

How to add my .csv fie users into the list using import definition

I am able to create Import definition using .net code calling web API. here i am giving id.FileSpec = "85255-ZIP.csv", my csv having users , how can i add this csv users to my import definition . ...
1
vote
0answers
58 views

Can Enterprise WSDL be used as Data Source for Web Parts?

I am designing a solution which requires the Portal Team (front end team) to display top Level information as clickable link (Year On Year financial data) pulled-out from Force.com App. When the end ...
1
vote
1answer
68 views

.Net Integration Timeout

When we use the following code for the authenticaiton, its gettign too much of time for get the result. is there any way to optimize the code? loginResult = SFDCServices.login(userName, passwordToken)...
0
votes
0answers
23 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
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 ...
0
votes
0answers
44 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 ...
0
votes
0answers
253 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
0
votes
1answer
63 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 ...
0
votes
0answers
438 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
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 ...
0
votes
0answers
128 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, ...
0
votes
1answer
321 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 ...
0
votes
0answers
2k 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 ...
0
votes
1answer
366 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 ...
0
votes
0answers
219 views

Receiving Callout Exception when calling a .NET service

Background of the service: The service is written in .NET and the service is also IP protected. The issue: The WSDL contains a ref="s:schema" element and a s:any element. I have removed the s:any ...
0
votes
1answer
136 views

How to create opportunity Using Connected App Callback URL

I have used bellow URL to get opportunity list using SOQL Query in .net Web application : token.instance_url +"/services/data/v33.0/query?q=SELECT+Id,Name+FROM+Opportunity" In SQL Query we can write ...
0
votes
1answer
200 views

ExactTarget API and .NET email creation

How can we make email that is being created by the ExactTarget API using .NET pick a layout from ExactTarget to go around the HTML body? Here is my sample code for the new email: var email = new ...
0
votes
2answers
169 views

How do I use SessionID for subsequent requests after successfully logging in

One of our provider has a salesforce system in place and they have send us the URL. I added the reference as a Web Reference since adding it as a Service Reference had some issues. Now, I am able to ...