Apex is a strongly typed, OOP language that allows to execute flow and transaction control statements on the Force.
Instead of this basic structure with IF / THEN / ELSEIF / ELSE int month = 8; String monthString; if (month == 1) { monthString = "January"; } else if (…
salesforce apexI am writing a test class for a trigger. But i am not able to run it properly it only …
salesforce apexI have a custom object MyCustomObj__c which has a field called "ContactData". I am trying to insert a record …
salesforce visualforce apexI am writing a test for my controller. For that I have to insert an event in the test database. …
salesforce apex-code apex soqlI'd like to subtract 5 minutes from DateTime.now() May I know how I can do this? Thanks!
datetime salesforce subtraction apexI want to create a custom exception. In this exception I want to make a constructor which take one string …
salesforce apex-code visualforce apexThe code itself doesn't give any errors, but anytime I run it Trailhead gives me this message: "Challenge not yet …
triggers salesforce apex apex-triggerI am working on a module which will de-duplicate contact records on insert/update but I am hitting into Apex …
salesforce apex-code visualforce apex force.comI have got a list of SObjects having N number of items/sObjects SObject[] sList = [sobject1, sboject2, sboject3, ........ , sobjectN] How …
list salesforce apex-code apex sublistCan I parse Multi-Level nested JSON structure in APEX Salesforce, like we do in Java with GSON and Jackson libraries? { "…
salesforce apex-code apex