Using XMLParser class someone can easily convert xml into JSON
If you have been enjoying the development of lightning components since each release is coming up with exciting features. I liked the Lightning:RecordEditFrom and have used it in various projects. While working on a piece of a project, I liked the idea of showing fields based on the page-layout so a System Administrator can control […]
Creating a dynamic SOQL which includes all the fields I have seen this question several times on developer forums and I thought it could be another addition to Salesforce cookies. If you are wondering how can you query all the fields of an object then you can use the following code snippet. https://gist.github.com/sfcure/81888ea3d0038b8f14df7c2006d98d7a The above […]
Adding Loading Icon on the page for an AJAX Request ( ActionFunction, CommandButton) It’s always good to add a loading icon on the page when you are processing something on the server side (calling an apex method ) so a user can understand that something is running in the background. Following code snippet can be […]
Uploading Attachment from Non-Salesforce Users ( Site or Guest Users) through Force.com sites I came across a question on Trailblazers community where someone asked for a way to upload an attachment to a record and it should be accessible by non-salesforce users. I won’t go into much detail about that and will focus on providing […]
Never store record’s Id as a String (Variable type) if you are comparing Ids in your Apex code If you are writing apex code then make sure that you are treating Ids’ carefully. You should emphasize on declaring your variables of Id-type instead of String since storing record Id in a variable which type is […]
If there is a need of scheduling an apex job or schedulable apex class after each hour then cron expression is the best way. Cron expression allows you to schedule a job on a specific time. Following cron expression runs a job after each hour of the day. [code language=”java”] scheduledJob j = new scheduledJob(); […]