Tag Archives: Apex

Running Apex Code through ExecuteAnonymous API

via Running Apex Code through ExecuteAnonymous API.

I was working on a POC wherein I need to run apex code through ExecuteAnonymous API like Workbench does. I got stuck on this one as it was not a straight forward task and I spend some time on research so wanna share my research with you guys.

First of all, ExecuteAnonymous call is available through Apex API & Tooling API.

  1. Apex API is available through SOAP protocol.
  2. Tooling API is available through SOAP as well as REST.

Getting Started with APEX REST Services

Author: Matthew Lamb, Appirio, Technical Architect What is REST? It is Representation State Transfer REST is a Architectural Style and NOT a protocol REST is a Framework It is HTTP Based (It is based on URLs, POST, GET ) It is Client-Server (Lost of Use-cases revolve around Mobile) It is Stateless (Everycall does not have […]


Catching Salesforce Outbound Messages with NodeJS

via Catching Salesforce Outbound Messages with NodeJS – topcoder.

When building applications that are integrated with Salesforce, one of the choices you have to make is howyou get data out of Salesforce and into your app. You can use one of the many ETL tools on the market, you can poll for changed records, use the Force.com Streaming API, use Apex HTTP Callouts from Salesforce or Outbound Messages.

I’ve covered most of these approaches in the past but have purposefully overlooked Outbound Messages. Why? Because, in general, I hate working with XML. Perhaps it harkens back to my SAP days but every time I have to traverse an XML structure, I think a kitten dies somewhere.

However, with that said, Outbound Messages are quite magical. You hook them up as an action to yourWorkflow Rule, so that whenever a record is, for example, created or updated in some manner, the platform will fire off some record data to the endpoint specified in the Outbound Message. My only issue with them is that they only support XML and most web languages like Ruby, JavaScript, Go, etc. prefer JSON (and so do I). So here’s a simple NodeJS app that will receive the XML from your Outbound Message and convert it into a JavaScript object that you can then use to do all sorts of awesome stuff!

*You can find all of the code for this application at my github repo. What follows is the interesting part that catches the XML and parses it in routes/obm.js.

Salesforce: How to Export Queue Members to Excel

As of this writing, Salesforce provides no way of reporting on who belongs to which queues. To know who is a queue member, you must either (a) go to the Salesforce Setup page to manage the queue or (b) run a SOQL query and join on groupmember object then export the data using Data Loader […]

Triggering Dynamic actions from javascript code in APEX

via Triggering Dynamic actions from javascript code in APEX | iAdvise blog.

Since APEX 4.0, dynamic actions have made our lives easier. But sometimes they feel a little restrictive in what you can do with them. Executing them upon the successful completion of another dynamic action, for example, or forcing a dynamic action to fire, triggered by something that happened in your javascript code.

Installing ORDS 3.0 (Early adopter) in Weblogic.

Now the Oracle REST Data Services 3.0 Early Adopter is available, let us have a look how it’s to be installed in Weblogic 12c!

I’ve ommitted the installation or upgrade of Apex here as there is plenty of documentation on that topic, and the ORDS can be applied for other uses than being an Apex Listener since v2.0.4.

via Installing ORDS 3.0 (Early adopter) in Weblogic..