Check out posts about Salesforce

Mar 192015

Salesforce – How to access Owner custom fields in a SOQL query?

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’.

Read more …

Tagged with , , , 0 comments
Feb 242015

Salesforce – How to show different error messages in Apex / Visualforce?

When we build custom Visualforce page, there are times we want to send some error message to user saying that something went wrong or additional data is required. Other time we want just inform him, that process bas been successfully ended.

We can do this by showing different types Apex page message severities. To do this, just use one of the following: Read more …

Tagged with , , , , , 0 comments
Feb 242015

Salesforce – How to get translated values of picklist and Record Types in Apex?

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.

Read more …

Tagged with , , , , , , , , 0 comments
Nov 202014

Salesforce – How to retrieve list of Chatter Files related to a record

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.

Read more …

Tagged with , , , , , , 2 comments
Sep 222014

Salesforce – Master-Detail lookup field locked for editing after creation

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.


Read more …

Tagged with , , , , 0 comments
Sep 202014

Convert your blog from qTranslate to mqTranslate

For many years I used the qTranslate plugin, which is responsible for language versions in Wordpresie. It is free, but it has been a major disadvantage – it is rarely updated. This causes problems after almost every Wordpres update . Sometimes it was possible to fix it manually by editing the plugin file, but after the latest WordPress 4 release it was completely broken. I was looking for any different plugin to keep the blog in two languages. Read more …

Tagged with , , , , , , , , 0 comments
Mar 122014

How to keep track of information from sites and blogs?

I remember when starting my adventure with the Internet 15 years ago in 1995) I used a modem to connect to the internet. Costs were not so low because 3 minute cost was 29 cents, which gave close to 5.80 per hour. So browsing internet only for 2 hour per day would cost about 1/3 of my monthly sallary.
This meant that if I wanted to read something, I had to do it fairly quickly, or simply save the data pages to disk.

Another disadvantage was the problem with tracking changes on my favorite blogs. Yes, yes, there were blogs already. Visiting daily 5 blogs was not a problem, but what if I need to check 50 of them? Because there was no Facebook (founded only 10 years ago, is in 2004), it was necessary to systematically check those websites manually for new messages or … use the tools for RSS. Read more …

Tagged with , , , , , , , , , , 0 comments
1 2 3 4 10