Questions tagged [soap-api]

SOAP API provides a powerful, convenient, and simple SOAP-based Web services interface for interacting with Salesforce.You can use SOAP API to create, retrieve, update, or delete records. You can also use SOAP API to perform searches and much more. Use SOAP API in any language that supports Web services.

Filter by
Sorted by
Tagged with
37
votes
3answers
16k views

Workaround for Offset 2000 limit on SOQL Query

Problem I'm trying to make a standard query pagination. I'm using SOAP API. The logic is classic: LIMIT recordsByPage OFFSET (recordsByPage*pageNumber)+1, It works fine, however, I'm facing the ...
8
votes
1answer
2k views

How do I Call the Salesforce API from a Lightning Component?

I have a requirement to make a call to the Apex Wrapper Metadata API from a Lightning component. The issue I am facing is that there is currently no native support for acquiring a valid API session ID ...
22
votes
3answers
11k views

Session_ID_Remove Issue in API callouts in Salesforce

I have below code to get session id of another org and to connect it. Problem I am facing is not able to see session id . HttpRequest request = new HttpRequest(); request.setEndpoint('https://...
17
votes
2answers
7k views

How do I use the Tooling API to create a new Apex Trigger?

How do I use the Tooling API to create a new Apex Trigger (rather than update an existing one)? According to the documentation I need to specify the ContentEntityId as an existing Trigger Id. But in ...
3
votes
1answer
2k views

Making a callout in Apex to Marketing Cloud SOAP API

Afternoon! I've been trying to find some information as in how to add a certain email to a suppression list in Marketing Cloud via Apex, but at the end of the day, I haven't found any information I ...
9
votes
1answer
3k views

Get a FIRST-CLASS SessionID for API Calls (looking for a clean way or alternative)

I am basically facing the same challenge as @Evan here Different Session Ids in Different contexts I'm also running into SessionID related issues, but in a completely different use case. Background ...
6
votes
2answers
2k views

Can we query the info from “Data Management -> Storage Usage” through SOAP API?

Can we query the info from "Data Management -> Storage Usage" through SOAP API? If so how? Actually, I need the count of records in all the objects in the org, and the size. (Also would like to know ...
5
votes
4answers
415 views

IDE hangs at “Saving components to project” whenever I refresh from server

Something like 75% of the time I attempt to refresh from server on a project in the Force.com IDE it gets the data from the server but then hangs for 10 minutes or more on the "Saving components to ...
6
votes
3answers
13k views

Exporting Data From Salesforce - REST or SOAP?

We have a requirement where we need to export records from salesforce tables into our application programmatically. I am reading on the various API's for data integration from salesforce mainly SOAP ...
8
votes
1answer
2k views

Customer Community login using REST API

I want to login a customer community user using rest api or at least using soap api. I have created a user using the REST API. To create the user, first I created one contact with account and ...
1
vote
2answers
2k views

Cannot retrieve fields from a Shared Data Extension using the SOAP API

I have a Data Extension which exists in the Shared Data Extensions directory and is available to all Business Units. I want to use the SOAP API to retrieve fields from this Data Extension. I've tried ...
9
votes
1answer
3k views

What is the ID at the end of the Enterprise SOAP service end point URL?

Is that the Organization Id at the end of SOAP service end point URL? I have checked the organization Id in my salesforce account and this Id did not match with it. Please suggest. https://login....
5
votes
2answers
5k views

How to create HttpRequest body as plain string from WSDL?

Is there an good way to (automatically) create proper request bodies from WSDL files just as a plain xml string? I need this for perfoming calls from APEX to different salesforce APIs, mostly for the ...
1
vote
1answer
1k views

Server-Side Javascript calling SOAP API

Does anyone see why this SOAP Request would return a 500 Internal Server Error? If I just pull out the payload test and run it in SOAP UI I get a correct response? <script language="javascript" ...
0
votes
1answer
1k views

Unable to Retrieve the Data Extension Fields using Soap Api

I have to Retrieve the Data Extension Fields from Data Extension object using Soap Api,But I am unable to Retrieve the Data Extension fields using Data Extension Object. Data Extension Soap Request: ...
1
vote
2answers
2k views

Retrieving html body of complete SFMC email

I am sending emails via SFMC/ExactTarget to clients using SOAP. I store the returned request ID in a database. Sometimes I specifically need to retrieve the completed HTML body from that request for ...
1
vote
1answer
1k views

Exact Target SOAP API: Using 'SimpleFilterPart' for Retrieve

I am facing a problem when triying to use the filter of the method 'retrieve' for the SOAP API of Exact Target. I dont know how to set an attribute to a node of the xml generated when using ...
1
vote
1answer
800 views

Making SOAP Calls via SSJS

I am trying to make a SOAP call following from the answer here : Server-Side Javascript calling SOAP API I am running this on a cloud page. When I publish it, it doesnt render (harbinger or bad ...
13
votes
2answers
2k views

How do I set DML Options when using the REST API?

My question is nearly identical to an existing question. To summarize the problem, my case owners aren't receiving an e-mail notification when a new comment is added to their cases. Please view the ...
4
votes
2answers
3k views

Upsert call in Enterprise WSDL

With the help of enterprise wsdl, I have been trying to make upsert call in Contact where I need to relate the contact with Account . I have an external Id field on Account and trying to use it for ...
1
vote
1answer
2k views

Retriving all Active picklist values of all recordtypes

Can you please guide me best way to retrieve all active picklist values of all recordtypes of object. Can it be possible through API or any Apex Script. I want something like below and i will write ...
0
votes
1answer
1k views

Starting Automation Program using SOAP API

I have struggling to get the SOAP API work to start the Automation Program. Below is the call I am using. It is returning OK status but the program doesn't start. <soap:Envelope xmlns:soap="http:...
0
votes
1answer
269 views

“No rows were found” on “Automation” SOAP RetrieveRequest

I am trying to retrieve automation object by following this guide https://code.exacttarget.com/apis-sdks/soap-api/interacting-with-automation-studio-via-the-web-service-soap-api.html#Retrieve I ...
3
votes
1answer
311 views

Identify salesforce schema changes

I am backing up Account, Leads, Opportunities and Document objects. Initial level backup is full where I download using BULK API and then incremental subsequently. If there is a change in the schema ...
3
votes
1answer
248 views

wsdl issue in soap api call

My first post,pretty excited.I want to make a soap api call which insert multiple records. I am using 2 different salesforce instances. destination side global with sharing class SoapDemo1 { ...
1
vote
2answers
3k views

How to generate enterprise WSDL files from salesforce?

I need to generate enterprise WSDL file in salesForce, but I don't see this option in Setup -> Develop -> API. I just see a page telling me for more information visit http://developer....
1
vote
1answer
686 views

Retrieving Data Extension names used in a Send

I have an email send definition that's configured to send to multiple data extensions. I've seen a few posts (here, here and here) that say retrieving the Names or CustomerKeys of these data ...
1
vote
1answer
692 views

Retrieving User Details using SOAP API

I want to retrieve details of the users of our Marketing Cloud account using SOAP. Looked through the document and created the below SOAP envelop. It is working fine but does not retrieve the ...
1
vote
1answer
337 views

Retrieve NotSentEvent

I am trying to retrieve a NotSentEvent using the SOAP API. The response I get back from ExactTarget is a timeout message. I am wondering if there is some better filtering that I can do, besides just ...
0
votes
2answers
145 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 ...
0
votes
1answer
470 views

Adding a ExactTarget calendar event using SOAP or REST API

Is it possible to add a custom calendar event to the Calendar pane in the Marketing Cloud interface using the ExactTarget API? I'm writing an app which does "stuff" and I'd like the app to add a ...
25
votes
2answers
8k views

How can I determine how many future calls have been executed in 24 hours?

I just ran into a huge gotcha in Salesforce: the 24 hr limit on # of future calls - cf. http://www.sundoginteractive.com/index.php?/sunblog/posts/governor-limit-gotchas-part-1-the-future-call/. I ...
24
votes
6answers
5k views

Most API call efficient way to retrieve all attachment bodies

I need to download the binary body of all the attachments in my organization. I'd like to do so with the least amount of API calls. It is my understanding that the SOAP API returns a single attachment ...
8
votes
2answers
13k views

check if sessionid is valid

I'm integrating a desktop app with SF using a c# component. I've created a login screen and can happily access all the fetures i want in my org from the application. The problem i'm having is ...
0
votes
1answer
1k views

Create a Complex Filter Definition via SSJS

I am looking to do a 'Create Filter Definition' (to initially create these filters) and then an iterative 'Update Filter Definition' to mostly automate our constantly changing campaign requirements - ...
2
votes
1answer
723 views

Sending triggered emails via the SOAP API results in duplicate subscribers being created

We are having problems with Salesforce Marketing Cloud. Here is our scenario: A subscriber is created via the user interface (with the email any subscriberkey set to the same value) A triggered email ...
3
votes
1answer
301 views

SOAP API to 'publish' a TriggeredSendDefinition?

I have a fairly odd use case here that I know SHOULD be possible, but I think I am missing something. The use case can break down to: I need a way to publish the TriggeredSendDefinition (TSD) once a ...
2
votes
1answer
27k views

query user and profile

I'm fairly new to salesforce so please bare with me as my understanding of the API' and SOQL is very limited. I'm having troubles linking user object and profile object through 1 query(), the correct ...
1
vote
1answer
685 views

Use AMPScript to upload an image into Portfolio in Marketing Cloud

We are trying to find a way to upload an image with AMPScript into Portfolio of the Email Studio (Classic Content) in the Salesforce Marketing Cloud. I know this is possible with SOAP or REST APIs, ...
6
votes
1answer
1k views

Can I use an OAuth 2.0 token for API Integration in Enhanced Packages in the Soap API fueloauth token header

In Salesforce marketing cloud I have an installed package with an API integration. I am in the process of moving from the old OAuth token created via https://auth.exacttargetapis.com/v1/requestToken ...
5
votes
1answer
2k views

frontdoor.jsp for Customer Portal user? How to authenticate a portal user with session id?

authenticate a customer portal using SOAP login() method and LoginScopeHeader receive SessionID in LoginResult object How can I use SessionID to redirect the user's browser to the customer portal and ...
5
votes
2answers
437 views

Metadata Deploy - test code coverage report is broken in Metadata API v34.0 (Summer 15)

Let's say I have two classes - AccountController - contains logic - TestCoverage - contains tests for AccountController With API v32.0 it was (and still is) possible to deploy .zip which contains ...
5
votes
2answers
5k views

What is the URL for using the Tooling API via SOAP?

What is the URL for using the Tooling API via SOAP? If I already have a valid Session Id I can start using the API directly: E.g. Enterprise API: https://server-api.salesforce.com/services/Soap/c/27....
4
votes
4answers
8k views

Getting the “com.sforce.ws.ConnectionException: Failed to parse detail: START_TAG seen” while connecting Salesforce instance from Java code

Getting the below exception while connecting Salesforce instance from Java code. I am using Partner WSDL now. But still getting the same exception. com.sforce.ws.ConnectionException: Failed to parse ...
4
votes
3answers
18k views

sObject ' ' type is not supported

Hey everyone I've been seeing this a lot lately and am trying to figure out why this error is thrown when querying the SOAP API directly. I've tried several very basic SOQL queries such as SELECT ...
4
votes
1answer
510 views

Error when trying to create an User-Initiated object (ETEmailSendDefinition)

I'm trying to use fuelsdk-0.999.jar and fuelsdk-0.9999.jar (both gave me the same error) in a Java projetc downloaded from https://github.com/ExactTarget/FuelSDK-Java/releases and when I try to call ...
3
votes
1answer
539 views

SFMC SOAP API Server-to-Server Integrations

I'm trying to create a QueryDefinition through the SOAP API using a new Server-to-Server Integration. I can successfully generate an access_token through the TENANT_ENDPOINT.auth.marketingcloudapis....
3
votes
2answers
5k views

How to add a field using the SOAP or other API

I am using the SOAP API to load data for multiple SObject types into a completely new Developer sandbox. I have manually added external ids to many of the objects through the native interface so that ...
3
votes
1answer
2k views

Bulk delete data extension rows

I am using the C# Fuel SDK for the deletion of rows in a data extension, am I am trying to delete large(ish) volumes of records at once. The sample code only provides details of how to delete records ...
3
votes
1answer
10k views

Exporting Data to CSV file via Bulk API

I am having trouble with my Bulk API code. What I want is to take the records in the Opportunity object, and a few of their fields, and export them to a csv file for reading. The code is currently as ...