Skip to main content
9 votes
Accepted

How to consume a soap web service using workbench?

Here is how I have tried using workbench to test a SOAP web service. Hope this helps. First you have to get the session ID by passing a Soap request(I copied the request XML from SoapUI) to login ...
Saroj Bera's user avatar
  • 14.8k
8 votes
Accepted

Username-Password OAuth Authentication for community users?

In the profile of the user make it as API enabled. I was able to log in using api inside the community using the below soap login call., <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"...
Pranay Jaiswal's user avatar
6 votes
Accepted

Understanding Server-Side JavaScript via WSProxy with the SOAP API

The CategoryID you are using is taken from Official Documentation so you need to replace it with yours. Just hover with mouse on your Data Extension folder and check status bar: you will find ...
Ros Haitovich's user avatar
5 votes

What does SHA256 change for us?

The underlying certificate provided by Salesforce for the connection is changing. This means that you will have to check that the integration you are using can use a SHA-256 certificate. Salesforce ...
Anil's user avatar
  • 306
5 votes
Accepted

Use Named Credentials with a SOAP WSDL2APEX class

I haven't tested this, but when you are creating your Named Credential you have the option to tick "Generate Authorization Header", which should do this for you automatically:
smukov's user avatar
  • 5,613
5 votes
Accepted

Not hard code end point in Apex callout

I often use a Custom Label to make string values configurable in my code: req.setEndpoint(Label.My_Credential_Name); You can also always go to Custom Settings when you want to make parts of your ...
Adrian Larson's user avatar
  • 151k
5 votes
Accepted

value="/soap/ajax/35.0/connection.js" can anyone tell me what exactly it is in apex:includescript

Connection.js and Apex.js are part of AJAX Toolkit. The first portion of any JavaScript code that uses the AJAX Toolkit must make the toolkit available to the JavaScript code. The syntax for this is ...
Tushar Sharma's user avatar
5 votes
Accepted

What is a " dead letter queue" in the context of SOAP Outbound messaging?

TL;DR - your message cannot be delivered and the system stops trying. I don't believe you can access Salesforce's Dead Letter Queue for Outbound Messages. To understand what a Dead Letter Queue is, ...
Adrian Larson's user avatar
  • 151k
5 votes
Accepted

Generate new password and notify user immediately

By default, you cannot trigger the same email as Salesforce triggers in the scenario you mentioned. I have had a similar situation, which was resolved with coordination between IT and Business as we ...
Jayant Das's user avatar
  • 30.6k
5 votes
Accepted

How to call a web service with base85 encoded data?

Unfortunately for you, there's not much that can be done here aside from checking to see if someone else has already implemented a Base85Encode method (a cursory google reveals that nobody has done ...
Derek F's user avatar
  • 62.7k
5 votes

Tooling API in Apex - polymorphism, generic query() callout?

As you found, if you just use the direct QueryResult against the SOAP API and include anything in the fields beyond the ID you get the following response: SOQL: Select Id, Name from ApexClass ...
Daniel Ballinger's user avatar
5 votes
Accepted

REST API vs SOAP API?

When a developer talks about something's "weight" (heavier or lighter), we're referring to the resources it consumes. SOAP requires substantially more memory and bandwidth than a JSON string of the ...
sfdcfox's user avatar
  • 497k
5 votes
Accepted

Marketing Cloud - Custom Placeholder Values in Email

Yes, you can definitely do this, given you know all the variable names and include them in Triggered Send email and Triggered Send data extension. Here's an example of how to achieve this. variable ...
zuzannamj's user avatar
  • 14.4k
5 votes

Creating XML with CDATA to send to a third party

I don't think you can. < is a reserved character in XML, so if you're using it in a text node, it'll have to be replaced by its respective HtmlEntity (i.e. &lt;). As usual, including more ...
Derek F's user avatar
  • 62.7k
4 votes

How to intercept the SOAP Request/Response Made from Salesforce or received in Salesforce?

The Salesforce solution: Create an endpoint at https://beeceptor.com/ and leave this browser tab open. Add https://beeceptor.com/ as a new remote site in your org at Settings | Security Controls | ...
Pablo Fébolo's user avatar
4 votes
Accepted

How can you retrieve number of records in a Data Extension using SOAP API?

You can retrieve rows count using an undocumented REST endpoint: GET https://YOUR-HOST.rest.marketingcloudapis.com/data/v1/customobjectdata/key/<DE-KEY>/rowset?$page=1&$pagesize=1 { "...
Denys Kurochkin's user avatar
4 votes

Make RPC/Encoded callouts from Apex

One option would be to craft the raw HttpRequest yourself and then parse the response. A tool like SoapUI would be really useful here. You could use it to generate sample requests and responses. Then ...
Daniel Ballinger's user avatar
4 votes

What is use of Apex WSDL used for (Setup->API>Generating the WSDL File)?

it seems like most of operation this WSDL offer are already there on Tooling WSDL then why they have created Apex WSDL? It is actually the other way round. Partner/Apex SOAP API predates Tooling API....
gaiser's user avatar
  • 1,370
4 votes
Accepted

The Coverage field from ApexCodeCoverageAggregate isn't returning coverage lines in Spring '16 (v37.0)

Update for Winter `17 Patch 14.2. This appears to be resolved as the coveredLines and uncoveredLines in the response are now in the "urn:tooling.soap.sforce.com" namespace. I suspect this is a bug ...
Daniel Ballinger's user avatar
4 votes
Accepted

Tracing the request.xml sent using apex callout

You can't see the full CALLOUT_REQUEST from a Sandbox. See the idea - View Callout Request and Response XML in Sandbox. We can't do this without blowing up the debug logs. Debug logs can only be 2MB, ...
Daniel Ballinger's user avatar
4 votes

SOAP API - No operation available for request create

You are sending an enterprise WSDL request to the Metadata API https://eu11.salesforce.com/services/Soap/m/39.0 endpoint. Instead you should send to Enterprise API https://eu11.salesforce.com/services/...
Saroj Bera's user avatar
  • 14.8k
4 votes
Accepted

When to use soap integration?

I'll try to help summarize this quickly for you. Salesforce doesn't use the latest version of the SOAP standard. SOAP is a dying protocol. It's generally slower than REST, but has been around for a ...
crmprogdev's user avatar
4 votes
Accepted

Error when Update QueryDefinition with SOAP API

To successfully update a QueryDefinition using SOAP, I had to include (1)the account's MID and (2)the query activity's ObjectID. I found the ObjectID by hovering over the link to the query activity in ...
Mark G's user avatar
  • 1,559
4 votes

What is SOAP Endpoint while connecting SFMC using Mulesoft?

These depend on what stack you are on. you can check what stack your are on by: Going to trust.marketingcloud.com and entering your MID number log into marketing cloud and check the prefix to the ...
0xsegfault's user avatar
  • 6,603
4 votes
Accepted

Pass null to webservice number field?

You should be able to specify null with xsl:nil: <ns0:Number_Field__c xsl:nil="true" />
sfdcfox's user avatar
  • 497k
4 votes
Accepted

Update a Subscriber using SOAP request, parameters and value not clear

You should be using something like below: <?xml version="1.0" encoding="UTF-8"?> <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/...
Rachid Mamai's user avatar
  • 4,741
4 votes
Accepted

Creating an email via SOAP API - response says OK - but I don't see the email

SOAP API only creates in Classic Content, which means if your email was created it would be in the classic email section. (Which may no longer be possible since Classic is being sunset) To create a ...
Gortonington's user avatar
  • 30.7k
4 votes
Accepted

Salesforce Platform API Versions 7.0 through 30.0 Retirement

From the same page link you put in your question (by the way, it is the same link twice) This retirement does not include Custom Apex REST & SOAP Web Services, Apex Classes, Apex Triggers, or ...
Sergio Alcocer's user avatar
4 votes

Salesforce Platform API Versions 7.0 through 30.0 Retirement

To check if your org will be impacted, you can use the following sfdx-hardis command: sfdx hardis:org:diagnose:legacyapi A detailed explanation is also available in this article
Nicolas Vuillamy's user avatar
4 votes
Accepted

What is the meaning of array elements of *type_info variables in SOAP / WSDL auto-generated Apex classes?

The details are fairly well covered in What are the parameters for the Salesforce WebServiceCallout.invoke method? From Jeremy's answer: If the variable represents another XML element or a text node, ...
Daniel Ballinger's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible