New answers tagged

1

There error message is quite clear, if you compare the error message's parameter with your constructor's, it gives a clue. | Actual | Expected in constructor | | | --- | --- | --- | | Id | String sfCustomerId | ...


3

The new syntax is used for classes that have constructors. The keyword is the means by which you call a constructor for the class, but not all classes necessarily have constructors. Some classes are static or only have static methods. A common example of a class like that in Apex development are Lightning component controllers which typically only have ...


0

If "1998-09-13T07:34:37.577Y" is in UTC and you want to display the date in local time, use something like this: let myDate = new Date("1998-09-13T07:34:37.577Z"); // A function for padding an integer with a leading zero if it's 1 digit const pad = (num) => { let s = "0" + num; return s.substr(s.length - 2); } let ...


Top 50 recent answers are included