Hot answers tagged

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.6k
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

Capture Salesforce Outbound Message with a Java SOAP Listener

http://requestb.in will let you see the XML that an outgoing message will send. So basically you need to do the following: Add requestbin url in remote sites of your salesforce instance Get a ...
pnoytechie's user avatar
6 votes

Read AccountUser's assigned to BusinessUnit in Enterprise Account

Setting an associated business unit is done like this: <CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI"> <Options/> <Objects xsi:type="AccountUser" xmlns:xsi="...
Drew Simmons's user avatar
6 votes

Salesforce Integration - Query

This is expected behavior .The login() has to be from either partner WSDL or the Enterprise WSDL .The Apex class that the would have created with webservice keywords will generate another WSDL that ...
Mohith Shrivastava'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

Data Extension API decimal type definition

I do not know if someone else encountered this issue but I solved it by addind the property 'Scale' in the props property of the DataExtension object. Example in php (should be the same for the others ...
M. Chris's user avatar
  • 150
5 votes

Capture Salesforce Outbound Message with a Java SOAP Listener

Salesforce auto generates the XML format of the message that is sent to external system. You do not need to provide a WSDL to salesforce if you are implementing an outbound messaging. Only Endpoint ...
manjit5190's user avatar
  • 7,973
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,503
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
  • 149k
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
  • 149k
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.3k
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
  • 59.3k
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
  • 481k
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.3k
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
  • 59.3k
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

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

SOAP updateMeta operation for CustomSite

Ack, added the urlPathPrefix tag to the request and found the problem: The metadata definition must contain all fields applicable to the type, eg: <metadata xsi:type="CustomSite"> &...
Matt and Neil'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
Accepted

SOAP Based Integration Workbook

You may have gotten confused because most resources that describe SOAP-based integration usually refer to using "callouts", "web services", or something dealing with "WSDL", but rarely just "SOAP." ...
sfdcfox's user avatar
  • 481k
4 votes
Accepted

What WSDL should be given to 3rd party vendor?

It really depends on whether you want your integration to be loosely coupled with your salesforce schema or tightly coupled . With partner WSDL the flexibility will be that even if another field is ...
Mohith Shrivastava's user avatar
4 votes
Accepted

Call out to an external SOAP Webservice

Salesforce provides a WSDL (Web Service Description Language) files. They are called "Enterprise WSDL" and "Partner WSDL". A WSDL is an XML-document which contains a standardized description on how to ...
Ratan Paul's user avatar
  • 22.5k
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,360
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

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.6k
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,545

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