A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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 ...
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 ...
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://...
21
votes
2answers
33k views

Rest API Vs SOAP API in Salesforce [closed]

Can any one explain me what is REST API and SOAP API. Also the example scenarios where these can be used ?
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 ...
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 ...
11
votes
2answers
3k views

Are SObject Id's sequential & should they be used for defining batches in a large data retrieval?

Are Salesforce ObjectIds (15/18 char) guaranteed to be sequential, based on create date? In other words, would the following queries return the same sequence of items?: 1. Select Id from Account ...
11
votes
2answers
3k views

Is SOAP API becoming obsolete?

I have a requirement to Integrate Salesforce with SAP Business Objects(BOJ) to retrieve some data in Real time and display using VF page. I will send Account Id from Salesforce and retrieve Billing ...
10
votes
1answer
150 views

UserType - REST vs SOAP

I am noticing a difference in the "User Type" field returned from the REST UserInfo Endpoint (link) vs the SOAP getUserInfo() method (link) as follows: SOAP Standard PowerPartner REST STANDARD ...
10
votes
1answer
878 views

Winter '16 breaks the Summer '15 Partner API with invalid soapType

With Winter '16 starting to appear on Sandboxes I've started encountering problems with the Partner SOAP API. The initial problem is around the new soapType enumeration values. In particular <...
10
votes
1answer
244 views

What are the extra arguments in InvokePerform() AMPScript function?

There are no examples on the usage of the InvokePerform() AMPScript function in the official documentation -- at least that I can find. Doing some testing and comparing the usage to the SOAP API, I ...
9
votes
5answers
2k views

Retrieve unpackaged and installed managed package components in a zip file

I actually know how to retrieve zip for unpackaged components through RetrieveRequest object. I now want to retrieve unpackaged components as well as all installed packaged components(Installed ...
9
votes
3answers
11k views

java.lang.NoClassDefFoundError: com.sforce.soap.enterprise.Connector

I am trying to query contacts from salesForce account but getting above error. I generated enterprise.jar file from the WSDL downloaded from my account. I have wsc-23-min.jar along with enterprise....
9
votes
2answers
5k views

Accessing Email sent in Activity History via API

Salesforce supports sending Email under Activity History on Opportunities/Accounts etc. Where is this information stored? Is there a way to send, query and store email messages via the API? The ...
9
votes
2answers
7k views

Authentication on API calls with Federated SSO

I'm looking to setup Salesforce using Federated SSO, and then make SOAP (or REST) calls from another application to the SF API. How do I authenticate in these API calls? EDIT... I'm looking to ...
9
votes
1answer
1k views

Is the LastModifiedDate of a deleted record the date that it was deleted?

The question's in the title, really. I'd imagine that LastModifiedDate for a deleted record would be the date it was deleted. But, anecdotal evidence from users seems to dispute this... I've queried ...
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....
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 ...
9
votes
1answer
149 views

Can an Object Definition's ID be obtained programmatically?

I've noticed that SF related lists are anchored (#) by a concatenation of the current record's Id, an underscore, the Id of the related list's object definition, and then "_target" (e.g. #...
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 ...
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 ...
8
votes
1answer
242 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 ...
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 ...
7
votes
2answers
6k views

First error: [UNKNOWN_EXCEPTION] ConcurrentPerOrgLongTxn Limit exceeded

We are currently facing a Salesforce platform error I have never seen before; First error: [UNKNOWN_EXCEPTION] ConcurrentPerOrgLongTxn Limit exceeded This happens both when logging into the API ...
7
votes
1answer
1k views

Query API Limits

Is there a way to programmatically query how many API calls an organization has made for the 24-hour period? We have a program that imports data from external databases to SFDC in a fancy way, and we ...
7
votes
1answer
5k views

INVALID_SESSION_ID: This session is not valid for use with the API, when calling SOAP API in old fashion

I have registered connected application with partner's SalesForce on Partner API level. Connected app have defined following scopes (id, web, api and refresh_token). When I try to invoke SOAP API ...
7
votes
1answer
1k views

Not able to alter Organization-Wide Defaults (OWD) via Apex

I am trying to alter Organization-Wide Defaults (OWD) via apex using https://github.com/financialforcedev/apex-mdapi (Apex Wrapper Salesforce Metadata API) tool. I can create custom object with ...
7
votes
1answer
3k views

Use cases for Enterprise WSDL vs Partner WSDL

I am trying to understand more deeply that why can't we do all the integration using Partner WSDL , why does salesforce even have a Enterprise WSDL when partner wsdl can provide the same functionality....
7
votes
1answer
516 views

Difference in exposing a service from SOAP To Rest

We currently expose some webservices in our salesforce org as SOAP. We are planning to move to REST as we had issues with flattening of wsdls and cryptic soap format. Could you guys tell from your ...
7
votes
1answer
856 views

upsert user based on federation id

I'm trying to update a user using upsert based on federation id. <urn:upsert xmlns:urn="urn:enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <urn:...
7
votes
1answer
817 views

Execution of Trigger multiple times

We've an inbound web service which is inserting/updating 1000s of records at a time. We've trigger which fires on update, but we noticed, it is 'only' firing for first 200 records at a time and ...
7
votes
1answer
5k views

Where can I get a CustomerKey?

Trying to do a trigger send with the ExactTarget SOAP API, but I can not figure out what a CustomerKey is. Where do I find this?
7
votes
1answer
186 views

Measure (SOAP) API call performances

Is there a way to measure SF server processing time for specific (SOAP) API method call? Example: I am invoking update of 200 objects in one request. I would like to see SF processing time on their ...
7
votes
1answer
2k views

Salesforce API via the Python beatbox module

I am new to accessing Salesforce data via the API. I am using the beatbox library for Python. My code: import beatbox sf = beatbox.PythonClient() sf.login('my user name', 'my password + security ...
7
votes
1answer
228 views

Salesforce winter 16 breaking the partner wsdl changes related to tns and uns namespace conflict

Some elements have changed namespace between v34.0 and v35.0. E.g. In v34.0 the soapType enumerations location and address were in the urn namespace ("urn:partner.soap.sforce.com"). In v35.0 They are ...
7
votes
0answers
119 views

WSProxy setClientId in Child BU does not allow execute at Parent BU

In SF Marketing Cloud, I'm trying to update a subscriber at the Parent BU Level from my SSJS in the Child BU. I created a Cloud Page at the Child BU to run the following code in order to debug faster....
7
votes
0answers
700 views

SOAP API Connection with Access Token

I am trying to connect to the SFMC SOAP API using an access token that I've successfully retrieved. (I have successfully made REST API request using same token.) I've been struggling with this for a ...
6
votes
2answers
2k views

SOAP webservice connection getting: no access allow to this class

I'm pretty new to salesforce and SOAP but here goes. I've made a connection to my site and then passed in the config to my webservice's object. This goes fine. But then I get this error: com.sforce....
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 ...
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 ...
6
votes
2answers
1k views

API unable to query Custom Object inspite of required permission

We have an API integration which uses the Salesforce cpan module to query data from Salesforce. This module uses the API version 23.0. It works fine when it queries on objects like Account, Contract ...
6
votes
2answers
2k views

Salesforce Wsdl not valid any more

I tried today to generate a proxy with the entreprise.wsdl file (also tried with partner.wsdl) and noticed that the file was 'not valid'. When generating the proxy, everything seems to be okay, but ...
6
votes
1answer
352 views

Is it possible to check how close we are to our API call limit before making a call through the API?

We use Salesforce to manage our website logins & access to our products. If something goes wrong with our site or it gets attacked, we quickly go over our API call limit which means that our store ...
6
votes
1answer
662 views

Can I Create Child Custom Metadata records through the Metadata API?

I have a requirement where I need to create parent and child custom metadata in an org programmatically. Since DML operations are not supported for creating custom metadata records, I am calling the ...
6
votes
1answer
110 views

Is there a zero-downtime way to rotate the server credentials used by force-wsc?

I use force-wsc to connect to the SOAP API with a username and password/security token in production. As a best practice, I rotate the password (and therefore the security token) on this server ...
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 ...
6
votes
2answers
2k views

Sanitize a string before injecting it into SOSL

Is there a way through the .net framework or some other package to sanitize strings so that they can be safely used in sosl? Is there any larger standard that SOSL falls under? I was able to find How ...
6
votes
1answer
4k views

Multi threading in SOAP API java client

Is it possible to do the multi-threading in java application while talking to Salesforce using SOAP APIs? I tried it myself and it seemed to work fine. But according to http://boards.developerforce....
6
votes
4answers
928 views

Determine sobject Type From Id Using SOAP API

I'm using C# and would like to determine the type of an sObject based on it's id. I would like to pass an id to my app and have it return a list of accounts related to it. I need to identify the ...