Monthly Archives: October 2017

How to get Layout assigned to Profile and Record Type by Apex Code

If you are interested in solution which would work only for Salesforce Classic, I have it. It is possible to make Tooling API ProfileLayout Object Query [ select Layout.Name from ProfileLayout where ProfileId = :UserInfo.getProfileId() AND RecordTypeId = :record.RecordTypeId ] To make … Continue reading

Posted in salesforce | Leave a comment

Retrieving Platform Action List and its context sources in Salesforce

Today I have been investigating how to get list of platform actions and how to get context source for given action. This is clear that we could use Metadata API to retrieve list and metadata of Lightning Platform Actions, but … Continue reading

Posted in salesforce, Uncategorized | Leave a comment

Bye-bye Test.isRunningTest()! Welcome Test.createStub and StubProvider!

Today I have found about wonderful feature which I have never heard before, it is mocking tests with stub interface It is now possible to create sophisticated stub interface implementation and use it with method Test.createStub. Yahoo! There is no … Continue reading

Posted in salesforce | Leave a comment

Salesforce Winter 18 feature to customize Lightning home page layout

For a long time I have been struggling about how to make Lightning Home Page to have only one column. Looks like there is an option in Winter’18 release. You need to create the following component HomePageSingleColumnTemplate with the following … Continue reading

Posted in salesforce, Uncategorized | Tagged , , , , , , | 14 Comments