Questions tagged [c#]

C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, procedural, generic, object-oriented (class-based), and component-oriented programming disciplines.

80 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
230 views

How to Tie OpenEvent/ClickEvent to a particular email a subscriber actioned?

I'm looking for some assistance on how to tie an OpenEvent or ClickEvent in Fuel SDK to the actual email that they took that action on. I can pull back OpenEvent's and ClickEvent's just fine, but ...
3
votes
0answers
300 views

400 error on username-password flow

I'm implementing a partner system to an existing username-password oauth flow for SalesForce, and I'm trying to get the c# code to work. I've been working with a standard WebRequest variant, which I'...
3
votes
1answer
137 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 ...
3
votes
0answers
332 views

Unique Custom field in Custom Field in Salesforce not getting created using metadata api

I am creating a unique custom field in Salesforce Lead Object Here is the working code that i have written CustomField cf = new CustomField(); cf.unique = true; cf....
2
votes
1answer
65 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
513 views

Soap API sendEmail Must specify a type attribute

I am trying to send an email using the Soap API but always get the following error: Additional information: Must specify a {http://www.w3.org/2001/XMLSchema-instance}type attribute value for the {...
2
votes
1answer
530 views

How to Retrieve all email send definitions by folder (category) ID through the Marketing Cloud API

I'm using the SalesForce Marketing Cloud (Exact Target). I have a folder ID (category ID) and I want to get all the send definitions (user-initiated sends) in that folder via the SOAP API in C#. I ...
2
votes
0answers
168 views

Create campaign, mails and schedule the send to subscribers lists with FuelSDK C#

I'm trying to schedule the sent of some mails with the FuelSDK (C#) in ExactTarget, but the documentation is really scarse and I'm not even sure how to begin. Basically what I have is a structure like ...
2
votes
0answers
306 views

ExactTarget - Automation - SOAP API deserialization

When using the C# library and SOAP to retrieve an automation, the AutomationTasks property will always be null even though the SOAP envelop of the response actually contains the AutomationTasks Node. ...
2
votes
0answers
288 views

ExactTarget Import Subcribers to list

Hi i'm new to exact target api what i'm trying to implement is import subscribers to list using API. i couldn't find a way to implement that. i only found add one subscriber to list like this using ...
2
votes
0answers
170 views

Getting timeout in FuelSDK

I'm trying to get a list of all of the subscribers within a list. The list is approx 32,000 email addresses. Below I have my code that makes the first request and it typically succeeds in getting ...
2
votes
0answers
584 views

Authorizing soap c# request errors

https://help.exacttarget.com/en/technical_library/api_overview/ In the above link it states "This element contains the customer's API username. A customer who uses the API creates a special user in ...
2
votes
1answer
139 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
0answers
103 views

Response not returning result

Hi I m using FuelSDK for Exact Target API integration. When I m running code of ET_SentEvent then it return proper value. but again when i m running same code it return zero result. after 30 min or ...
2
votes
1answer
7k views

INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session

I am integrating salesforce in my asp.net application. I am using partner WSDL from my account lets say I am having a developer account XYZ@gmail.com and I have downloaded partner WSDl from that ...
1
vote
1answer
37 views

Create sObjects related by What field

I am using the SOAP API (in C#) to create new Cases, which will have several Tasks attached. The intent is to be able to view these Tasks under the "Activities > Next Steps" area of the Case view on ...
1
vote
0answers
171 views

ERR 596 SERVICE_NOT_AVAILABLE at ETClient()

I have a very basic Installed Package, with an API Integration component... ...and a very simple connection test... public void TestConnection() { ETClient client = new ETClient(); ...
1
vote
0answers
408 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
107 views

(405) Method Not Allowed on all FuelSDK requests

I am using C# and the FuelSDK to use the Marketing Cloud API. I have tried multiple methods but they each give me the same Exception -> Method Not Allowed. I looked into this but i couldn't find the ...
1
vote
0answers
139 views

How do I insert my credentials into the Client when using the ExactTarget S6 WSDL

I have imported the S6 WSDL into Visual Studio 2013 to generate the client code however I cannot figure out how to give it the clientSecret, clientId and/or auth token so that it can actually perform ...
1
vote
1answer
109 views

C# Get SessionId returns affinity token empty (“”)

When im doing the GET request to get the affinityToken, its come empty {"key":"b99d9a87-c7db-4f5a-a20d-9419bb2d0ad0!1549978665283!x6db6+hNaLzITCEq9EcjFLyKAjw=","id":"b99d9a87-c7db-4f5a-a20d-...
1
vote
1answer
40 views

How to perform SOQL query after retrieving access_token and instance_url via oAuth2 flow?

I have successfully setup my oAuth2 flow, created a Connected App and I can retrieve an access_token and instance_url just fine. Now that I have those two pieces of data, how can I perform SOQL ...
1
vote
0answers
41 views

Can't Access sObject 'type' Property

I am following a Salesforce tutorial using Soap to create and modify Salesforce objects using C#. I downloaded a WSDL from my org and have added it as a web reference in my project and I can ...
1
vote
0answers
135 views

Salesforce API C# Whitelist Server Proxy Authentication Required Login Issue

I was wondering if someone can help me with a login issue I am having with my .NET application. I have whitelisted the server with salesforce IPs through my company but I am still getting a (407) ...
1
vote
1answer
633 views

Problem authenticating w/SOAP and Access Token

When attempting to use the Marketing Cloud (building an app for it), we are getting an error message when using our obtained Access Token: The security token could not be authenticated or authorized -...
1
vote
0answers
411 views

Base64 Profile Picture returns blank image

I am building an API and one resource we need to pull through for our portal is the Profile photo from Salesforce. I am not returning an error, but the byte string coming back is not presenting the ...
1
vote
0answers
546 views

how to download attachments from Salesforce using c#?

I am a beginner in Salesforce. I have uploaded the attachments on Salesforce using C# but I do not have any idea to download them using C#.
1
vote
1answer
602 views

C# REST API - Get Dependent Picklist Values

Within one of my Salesforce object, I have cascading picklists where the selection of one picklist displays values for the next level picklist. So I have three dependent picklists. What I would like ...
1
vote
0answers
144 views

WCF Salesforce SOAP Client switch endpoint

Is there a way to switch WCF client endpoint address after login call? I don't use app.config file: var binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport); var endpoint = new ...
1
vote
1answer
579 views

Getting Attachment Id with subquery using rest api in c#

Hey guys i am trying to get attachment Id in a subquery via the rest api in c# here is my query: SELECT Id, Name, First_Name__c, Middle_Name__c, Last_Name__c, (SELECT Id FROM Attachments WHERE Name = ...
1
vote
0answers
453 views

ExactTarget, Automations, Folders and API

This is a three-part question: In the Automation Studio, automations are arranged in folders. However, unlike with all other types of objects I have managed up until now with SOAP and Fuel using the ...
1
vote
0answers
101 views

Send User-Initiated Email using Fuel C# SDK with Data Extension and Publication List

I would like to send a user-initiated email using API calls through the Fuel C# SDK. The user-initiated emails have been set up using the UI and data extensions are used for the addressees. I chose to ...
1
vote
0answers
39 views

c# api to salesforce

My app does queries to the SF, after a select I got some objects, when I do this: string id = Object.Id; User a = Object.CreatedBy; I can see how the "id" variable give me the Id of the record ...
1
vote
1answer
36 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
0answers
534 views

Send “Custom Attribute” when sending Email via TriggeredSend

I'm very new to the Exact Target SOAP API. I was wondering if someone could tell me how to send an attribute that isn't part of the subscriber object, via a Triggered Send. I've managed to ...
1
vote
1answer
342 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
470 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
65 views

Remove Test Email list from all email List of exact target

I am using Fuel API sdk for Exact target integrateion with Asp.net web application I am getting all list of email campaign through this code. List<ET_Send> sendList = new List<ET_Send>();...
1
vote
0answers
87 views

createmetadata/Updatemetadata/Upsertmetadata does not work for flowactions

I'm able to create new workflow rules but unable to create workflow flow actions (which are intended) to act as triggers to invoke flows via the Metadata API - Create/Update/Upsert calls. I don't get ...
1
vote
0answers
83 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
797 views

Get list of all report names

I would like to obtain a list of all SalesForce reports under all folders - the ones available by default (ex - All reports under Accounts and Contact Reports folder) and also the custom reports. At ...
1
vote
1answer
156 views

Retrieving Subscribers via C# SDK, results always empty

I am brand new to ExactTarget and their C# SDK/API. I am having no luck on what should be the simplest of tasks. I am trying to use the FuelSDK-CSharp objsamples project to simply retrieve a ...
1
vote
1answer
200 views

Response issue in FuelSDK in c# for exact TargetAPI

I am getting this error. An error occurred while receiving the HTTP response to https://webservice.s7.exacttarget.com/Service.asmx. This could be due to the service endpoint binding not using the ...
1
vote
0answers
253 views

Find the field is mandatory or not

I am developing an application for Salesforce integration. My requirement is to get all the validation rule and Mandatory fields from Lead category like we have lead status as mandatory in salesforce ...
1
vote
0answers
244 views

(C#/API) DescribeSObjects call returning only 250 fields

When calling describeSObjects on any sObject that has more than 250 fields, I am only receiving back 250 fields and I am not sure what to do about it. I know that there is a hard limit on the number ...
1
vote
0answers
1k views

Can't set RecordType

I'm writing a tool to sync data from a data source into Salesforce. I'm trying to set the RecordTypeId on the Account object which I can do successfully in code, but doesn't appear in Salesforce when ...
0
votes
0answers
8 views

Pulling an Account to Relate To (REST API/MVC)

I am currently working on making a form. I have a method build out that gets the subject from this Event object, and it puts it in a dropdownlist, this works fine, BUT, now I need to find a way to ...
0
votes
0answers
33 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
69 views

FuelSDK C# API Permission Failed

Currently using the latest FuelSDK from Nuget. Creating the client as such: var parameters = new NameValueCollection { { "clientId", ...
0
votes
0answers
24 views

sort Parent and child objects in order of execution

I am doing a upsert operation using soap api, but I need sort the sobject in which all parent should be upserted first and the their children. i.e if Lead object is depend on Acount object and contact ...