Author: Enrico Murru

[Salesforce] The Sobject Crusade: AppMenuItem

Source: AppMenuItem This object hosts the applications you find in the app menù (upper right corner of the CRM) or in the App Launcher and the Connected Apps. The list of such items are in Setup > Create > Apps The object contains all application informations such as Name, Label, start URL, but also all […]

[Salesforce] The Sobject Crusade: ApexTrigger

Source: ApexTrigger The ApexClass is the most beloved object for Salesforce Developers. It identifies a specific Apex Class, so you can query for Classes runtime. Note that, even if the describe states that the ApexTrigger is creatable and updatable, an exception is thrown if you try to insert/update via API a trigger: use the tooling […]

[Salesforce] The Sobject Crusade: ApexTestResult

Source: ApexTestResult After you execute a test class (ApexTestQueueItem), you’ll get the test results of a given test method execution. To query this information use the ApexTestResult object. The object conveys the following fields: ApexClassId: the test class ApexLogId: the ApexLog object (if log is enabled) AsyncApexJobId: the main aync job (this is the same […]

[Salesforce] The Sobject Crusade: ApexTestSuite

Source: ApexTestSuite String ’16 comes with a handy feature regarding test execution, the Test Suites. They are a collection of tests ment to be run together organized in a single suite. To access the test suite open your Developer Console and click Test > New Suite and enter the Suite name: Then select all test […]

[Salesforce] The Sobject Crusade: ApexTestQueueItem

Source: ApexTestQueueItem The ApexTestQueueItem object gives you access to the underlying test item for a given test job for a given class. If you don’t know what is a test class refer to this article to get started: a test class is a class used to (guess what?) test a set of apex classes / […]

[Salesforce / Lightning] #Cool Modal Dialog Component

Here we go with another simple UI component, made up with the new Lightning Design System. Here you go a simple Modal dialog box. For those of the TL;DR tribem here is the GitHub repository. The component is ment to be placed in your app in this way: <c:ModalDialog type=”{!v.dialogType}” title=”{!v.dialogTitle}” content=”{!v.dialogContent}” showDialog=”{!v.showDialog}” context=”{!v.dialogContext}” inputValue=”{!v.dialogInputValue}” […]

[Salesforce] The Sobject Crusade: ApexPage

Source: ApexPage The ApexComponent, as you would expect, is the record for the Visual Force Component. Note that, even if the describe states that the ApexPage is creatable and updatable, an exception is thrown if you try to insert/update via API a class: use the tooling API or metadata API instead. Among the fields, you […]

[Salesforce] The Sobject Crusade: ApexLog

Source: ApexLog The ApexLog gives access to the Debug Log. To enable log monitoring for a user, go to Setup > Logs > Debug Logs and click the New button to add an user. These rows can be queried: select id, StartTime, Application, DurationMilliseconds, Location, LogLength, LogUser.Name, Operation, Status from apexlog order by StartTime DESC […]

[Salesforce] The Sobject Crusade: ApexComponent

Source: ApexComponent The ApexComponent, as you would expect, is the record for the Visual Force Component. Note that, even if the describe states that the ApexComponent is creatable and updatable, an exception is thrown if you try to insert/update via API a class: use the tooling API or metadata API instead. Among the fields, you […]

[Salesforce] The Sobject Crusade: ApexClass

Source: ApexClass The ApexClass is the most beloved object for Salesforce Developers. It identifies a specific Apex Class, so you can query for Classes runtime. Note that, even if the describe states that the ApexClass is creatable and updatable, an exception is thrown if you try to insert/update via API a class: use the tooling […]