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
42
votes
3answers
19k 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
3k 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 ...
18
votes
2answers
8k 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 ...
22
votes
3answers
14k 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://...
8
votes
1answer
3k 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 ...
4
votes
1answer
4k 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
4k 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 ...
2
votes
1answer
5k 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 ...
5
votes
4answers
417 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 ...
7
votes
2answers
3k views

Create/Update Global Value Set using Tooling API

Can someone tell me how to create and update Global value set using tooling API? No sure what so send in request body.
2
votes
1answer
552 views

Unsubscribe process on external page with update to _Unsubscribe dataview

What I would like to achieve is an email unsubscribe process that is secure, performant and on an external page with the ability to update the internal system table (dataview) _Unsubscribe. How I ...
0
votes
2answers
2k 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:...
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 ...
1
vote
3answers
1k views

Read AccountUser's assigned to BusinessUnit in Enterprise Account

My Business Requirement is to read the Users that are assigned to the different BusinessUnit's in our Enterprise Account. For testing purposes I'm using the PHP Library. Using the following code I'm ...
1
vote
2answers
3k 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 ...
6
votes
3answers
25k 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 ...
2
votes
2answers
3k 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....
6
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 ...
3
votes
1answer
4k views

INVALID_TYPE Error When Creating a Custom Object With SOAP

I am getting errors when attempting to 'Create' a custom "O2C_Alert__c" object with a SOAP request. My request is: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" ...
1
vote
1answer
2k 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
2k 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: ...
0
votes
3answers
738 views

Clearing a Data Extension using SSJS with SOAP

I am using the below SSJS to clear out a data extension. It works well in the Parent BU but when I run it in a Child Business Unit it fails <script language="javascript" runat="server"> ...
27
votes
2answers
9k 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 ...
2
votes
1answer
2k 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 ...
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 ...
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
1k views

All Soap API calls to Marketing Cloud returning 405 error

I have 2 instances of Marketing Cloud I'm currently working with. Both have been configured identically for API access and I created a OAUTH 1 package for Web API integration for each of them. ...
6
votes
2answers
8k views

Using Salesforce Partner API from community portal

I've created a custom button on the opportunity layout which calls out to an external java app. It passes the session id and the partner API URL. The external app then creates a SOAP binding (...
4
votes
3answers
2k views

How to set the language for API Rest or SOAP?

I'm integrating SF with other systems using the standard SF API (SOAP and REST). For this, I'm using a specific user which has a special profile (using API Only permission). The Integration user has ...
3
votes
1answer
429 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
290 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
1answer
375 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 ...
1
vote
1answer
1k 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
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
190 views

EmailSendDefinition + specify tracking folder

Is it possible to specify the tracking folder when created an ESD / EmailSendDefinition via the soap api? Doesnt look like it is based off the Objects properties. http://help.exacttarget.com/en/...
1
vote
3answers
1k views

Activate a Master Unsubscribe using the SOAP/REST API?

Is there a way to Activate a Master Unsubscribe using the SOAP/REST API? We are using the update method (UpdateAdd) with SOAP API. It works when a user is activated or subscribed to one or more ...
1
vote
1answer
824 views

Unit testing with SOAP and REST callouts

My project assumes quite big integration with external webservices. Unfortunately first major service is SOAP and second is REST. Problem is that there are getting more and more places in the code ...
1
vote
2answers
464 views

API for user creation in Marketing Cloud not working

I am using the following SOAP envelope for creating a marketing cloud user using SOAP API. I am testing it using POSTMAN, I got a status code 200, so the request went fine, but the user DID NOT get ...
1
vote
1answer
1k 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 ...
0
votes
2answers
211 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
0answers
279 views

SFMC/Exact Target c# SOAP API - is there a way to assign tracking folders to email send definitions?

I'm creating an email send definition for a user-initiated send with the c# SOAP API library. Is it possible to assign the tracking destination folder through the API? Thanks in advance!
0
votes
1answer
517 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 ...
0
votes
1answer
113 views

Salesforce login using dot net code [closed]

static async Task<loginResponse> SfLogin() { Task<loginResponse> lr = sc.loginAsync(null, userName, password + securityToken); return await lr; } // In the above ...
25
votes
6answers
6k 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
14k 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
2k 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 - ...
9
votes
1answer
5k 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....