Monthly Archives: July 2016

Salesforce Delegator to Run Batch

I was asked to implement a button to run a batch. Firstly I decided to create a VisualForce page with a simple controller like this I presented this solution to the client, but the client told me that he would … Continue reading

Posted in apex, batch, button, controller, custom, javascript, Posts in English, Run, salesforce | Tagged , , , , , , , , , , , | Leave a comment

How to fix Cannot have more than 10 chunks error

Today I’m going to discuss about fix for “System.TypeException: Cannot have more than 10 chunks in a single operation. Please rearrange the data to reduce chunking” error. There are a lot of materials on the web where people suggest solutions … Continue reading

Posted in apex, Bugs, DML, Error, example, Governor Limits, lifehack, Posts in English, record, salesforce | Tagged , , , , , , , , , | 2 Comments

How to migrate dashboard folder by Salesforce Migration Tool?

Today I have been struggling trying to migrate reports and dashboards from developer organization to production. Looks like we can’t deploy dashboard without a folder. While for reports there exist standard ‘Unfilled Public’ folder, for Dashboard there is no predefined … Continue reading

Posted in Ant, Uncategorized | Tagged , , , , , | Leave a comment

How to populate relationship using External Id field in Salesforce?

I have read in the past that it is possible to insert parent and child records in a single DML operation using External Id field population for a lookup. Today I tried to implement that but it took me some … Continue reading

Posted in apex, lookup, Posts in English, record, salesforce | Tagged , | Leave a comment

How can be avoided error SINGLE_EMAIL_LIMIT_EXCEEDED Email limit exceeded if need to send email to one single user?

I have been looking for some time looking for a way how can error SINGLE_EMAIL_LIMIT_EXCEEDED Email limit exceeded be avoided if I need to send one simple email to one single user, for example, myself. 15 Email invocations limit on … Continue reading

Posted in apex, email, example, Free, limits, mail, mass, Posts in English, salesforce | Tagged , , , , , , , , | Leave a comment

How to display button on VisualForce page only if user has Delete permission?

This may be useful for both usual Salesforce Developers and ISVs. There are several ways to achieve the functionality described in the header. I would mentioned only the simpliest one: Assume you have custom object CustomObject__c and you need some button … Continue reading

Posted in salesforce, Uncategorized, visualforce | Tagged , , , , , , , , | Leave a comment