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 / […]
Tag: Apex
[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: 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 […]
[Salesforce / Lightning Connect] Lightning Connect Custom Adapters and MongoDB (DML support) pt.2
Do you remember the Lightning Connect Custom Adapters and MongoDB post? Things have changed after that post and finally the platform supports all DML statements: insert, update and delete! To make the magic work I had to make: some changes on the heroku-crest MondoDB NodeJS proxy to better support for PUT/DELETE/POST methods some changes on […]
[Salesforce / Apex] Let’s play with Named Credentials and OAuth 2.0
Few days ago I was lurking in the Named Credentials configurations. What are named credentials? Here are the official docs. They are essentially a way to store callout configurations such as: Endpoint (only HTTPs endpoints are supported) Callout certificate (if needed, from the local key store) Authentication protocol (if needed) Authentication settings With named credentials […]
[Salesforce / Custom Settings] How and Why
This is a beginner’s guide to Custom Settings, that shows a practical way of using all the features they convey. For TL;DR people, this is the GitHub repository of the example. One of the greatest pros of the Force.com platform is the extraordinary quick development phase: even when you are under continous software development, you […]
[Salesforce / Apex Formula] Help me testing my Apex Formula Algorithm!
a{color:red !important;} This is a call to arms! In the past months I have developed an implementation in Apex of Salesforce Formulas in order to have a way to use a formula result dynamically without the need to have a custom field on an object. It has been a huge work and a lot has […]
[Salesforce / REST APIs] API Request limit on REST header response
Plyaing with Salesforce APIs for a super secret project I came across at this (the red one) response header: { date : “Fri, 31 Jul 2015 22:20:47 GMT”, set-cookie : -[ “BrowserId=8gV_vxxxT–xxxi0bg0vug;Path=/;Domain=.salesforce.com;Expires=Tue, 29-Sep-2015 22:20:47 GMT”, ], expires : “Thu, 01 Jan 1970 00:00:00 GMT”, sforce-limit-info : “api-usage=113/5000000”, last-modified : “Fri, 24 Jul 2015 12:07:09 GMT”, […]
[Salesforce/ Lightning] inputLookup: the missing component
Or quick tips on how to implement your own inputLookup Salesforce ligthning component This is a repost of the article I published on Salesforce Developer Blog. Salesforce Spring ’15 release brought some brand new components ready to be used in your lightning apps. One of the missing components that could be useful for your apps is […]
