Winter ’14 introduced the ability to receive name and type in Apex and SOQL queries.
Use CronJobDetail relationship to get the job’s name and type.
Read more …
When I was preparing my first change set, I was a bit surprised that I couldn’t get information about what was changed recently. Then I learned that there is Audit Trail which stores this kind of information as a changelog.
So I prepared a tool where you can upload a CSV file (from View Audit Trail section) and it will show you the changes made in the system (changed Apex classes, VF pages, objects, fields, profiles etc.).
Salesforce provides a native way to use country and state values in Account and Contact address fields. It’s very useful on page layouts. But what if we want access that values and use them in our Apex Class and Visualforce Page?
Today I came across a problem with accessing Owner custom fields (for the User object I had several of these fields).
I only could access few standard fields like Owner.Name, Owner.FirstName without problems.
SELECT Id, Name, Owner.Name, Owner.FirstName, Owner.Store_Name__c FROM CustomObject__c WHERE Id = :ourId
ERROR at Row:1:Column:74
No such column ‘Store_Name__c’ on entity ‘Name’.
Sometimes we would like to have an easy access to all our tasks. We can browse some of them on the Home page, but it’s not always efficient way. Instead of that, we would like to have them as a tab and view them on whole screen.
When we create an application that uses multiple languages, we use translation workbench is the purpose of the translation. Salesforce takes care of the translation user interface, so we always got the right language. But to get the data (picklist values and record type names) in the appropriate language in Apex and VisualForce – we have to do it ourself.
Files associated with a record can be stored in 2 ways: as an attachment (in the Notes & Attachements related list) as well as Salesforce Content (using Chatter Files).
Recently I had a task to create Visualforce pages, which put on the Page Layout as inline Visualforce showed the files posted by Chatter Files associated with the record. Adding files was carried out by the Chatter. Assigning Topics to an entry in Chatter allowed to filter files by this as a category.
Working as a Salesforce Developer meet with the various problems of both a configuration and developing.
One of the problems was when I created a Master-Details field on custom object to another custom object. When I created a record on the child, I coulnd’t edit value of this field.
As it turned out this inner Salesforce limit (no edit option in the Master-Detail field regardless of the permissions to read / write). Fortunately, with the Summer 12 release we can change this value. To do this, enable the “Allow reparenting” in Master-Detail field definition. By default, you cannot “reparent” records in master-detail relationship.