Study on Removing Unwanted Process Instance Node in

In my org, Process Instance Node still occupy data storage after removing related objects and approval process. I have try several tools to delete unsuccessfully. Therefore, I keep a note and will update this post continuously until they are gone.

Continue reading “Study on Removing Unwanted Process Instance Node in”

Capture Salesforce Outbound Message with a PHP SOAP Listener

To integrate Salesforce and other system, you need to make sure they may communicate with each other.

Web-to-lead is an example for Salesforce to capture message from others. Another example is a variant of “Get data through Salesforce REST API” section in my last post. You may change the Salesforce Object Query Language (SOQL) in Apex code into Salesforce Object Search Language (SOSL) for more flexible database operation in Salesforce.

Another case is when Salesforce need to pass data to other service. This is our focus. Here I am going to how to capture Salesforce Outbound Message with PHP.

Continue reading “Capture Salesforce Outbound Message with a PHP SOAP Listener”

Parse XML with namespace by SimpleXML in PHP

The XML send by outbound message from Salesforce comes with namespace which I cannot parse as most XML tags by SimpleXML.

When google for related solution, it seems children might be the solution, but I cannot find an example that match my case. There are other potential solution like xpath, SoapServer, XML Parser, XMLReader, and even Toolkit for PHP. But I preferred to keep it simple, and focus on SimpleXML.

After test different combination several times, I finally make it work for my case. Here is how:

Continue reading “Parse XML with namespace by SimpleXML in PHP”

How to Get Data in Salesforce from WordPress Without Authentication?

It’s easy to create content in WordPress. But what if we need to get data from Salesforce? For example, if I want to show the total registered number of a campaign, what should I do?

So far as I know, there are two different solution.

  1. Embedded Salesforce page in WordPress
  2. Get data through Salesforce REST API

Continue reading “How to Get Data in Salesforce from WordPress Without Authentication?”