Salesforce Blogs

Abhinav Gupta Abhinav Gupta

Accessing Sobject Field Sets in Apex Code!

I recently came across a problem where I need to query the fields to be shown via FieldSet via Apex Code (no standard controller love). After struggling for a while with Apex docs, I googled for the same and found an idea posted for the same.

Read More
Abhinav Gupta Abhinav Gupta

Fixed – “Compile Error: Type is not visible: test”

“Error: Compile Error: Type is not visible: test at line…” was bugging one of my peer developer for a while. For us, it was coming at a line in the source code where Test.startTest() call is made, though it can come at any other use of any method from the “Test” class.

Read More
Abhinav Gupta Abhinav Gupta

Force.com Developer Console Navigation Trick

I never thought that working in a browser could be more fun than Eclipse IDE. But my thinking is changing these days. First, https://jsfiddle.net/ became my favorite playground for any HTML/JavaScript research.

Read More
Abhinav Gupta Abhinav Gupta

Yet Another Apex Trigger Template!

I know Trigger templates are previously discussed also in great detail. We have excellent posts available by Steve Andersen(Gokubi) and Mike Leach on the same. Here is my small journey on Triggers…

Read More
Abhinav Gupta Abhinav Gupta

Visualforce Code Templates/Snippets for Force.com IDE!

Force.com IDE is already doing a decent job on top of Eclipse. It provides a nice Visualforce editor with syntax highlighting and code indentation based on the standard Eclipse HTML Editor. I recently tried to create a couple of Visualforce code templates/snippets to quickly assist in creating the pages and was successful in that attempt. The rest of the post describes how.

Read More
Abhinav Gupta Abhinav Gupta

JSON Parsing in Apex can be a Developer’s Nightmare!

Today I stumbled upon a requirement to parse JSON in Apex. I was happy about the fact that I know there is a cool open source library calledJSONObject, that will do all the heavy lifting of JSON parsing and another more cooler native JSON parser is lined up in coming winter'12 release…

Read More
Abhinav Gupta Abhinav Gupta

Preparing for Salesforce AppExchange Security Review!

This post is for guys who are planning to release their app on App Exchange and are looking forward to clearing the security review in one shot! This post aggregates all the good links and information you should have in hand.

Read More
Abhinav Gupta Abhinav Gupta

Apex API String.format(); Exploring Good & Bad Parts!

I recently came across this useful and under-documented Apex String API, i.e. String formattedString = String.format(String template, List<String> arguments)

String.format(..) is again based on the Java MessageFormat class; its documentation says: Treat the current string as a pattern that should be used for substitution in the same manner as apex:outputText.

Read More