August 12, 2014

Using "Chrome Mobile Emulator" for testing Salesforce 1 Mobile Apps

If you are developing Salesforce 1 mobile apps, and struggling to test the same, on different mobile devices, geo locations and network conditions, following video might be good help:




Resources


August 1, 2014

Testing SOAP Outbound Messages without failures

As suggested by Salesforce docs, one can use services like requestb.in or inspectb.in to test outbound messages. But these services are pretty generic so they just return 200 / OK response for any inbound request. For an outbound message to be considered delivered successful by salesforce, it needs an SOAP XML response with "Ack = true" in following format:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<notificationsResponse xmlns="http://soap.sforce.com/2005/09/outbound">
<Ack>true</Ack>
</notificationsResponse>
</soapenv:Body>
</soapenv:Envelope>

June 30, 2014

Cancelling out of HTML5 browser validations !

This post is based on a short scary movie, I was working on a cool HTML-5 page

 <apex:page .... docType="html-5.0"/>

But all the coolness disappeared when powers of CANCEL button are gone. The typical Cancel button in salesforce, which is always tough enough to get out of any validation, i.e.

<apex:commandButton action="{!cancel}" value="Cancel" 
immediate="true" />

On hitting the cancel button like this, HTML5 and browser acted smart and ruined all the fun, i.e. got following error: