Skip to main content
6 events
when toggle format what by license comment
Apr 28, 2020 at 12:45 comment added Manish Anand recordType = '' ; it means recordType is null and null is a type of Object in Javascript. recordType; , it means recordType is undefined. You can access the property of an object (null) in this case but not of undefined. Here is another link of your question which has almost same explanation - salesforce.stackexchange.com/questions/304025/…
Apr 28, 2020 at 12:42 comment added Deployment Failure Re: apex class, this was another issue with the pasted code. I have rectified.
Apr 28, 2020 at 12:41 comment added Deployment Failure Thanks Manish, I noticed using recordType; didn't work, but when I used recordType = '';, it did. Is there a reason for this? I don't really get why setting it as an empty string works but just initialising it doesn't.
Apr 28, 2020 at 12:39 vote accept Deployment Failure
Apr 28, 2020 at 5:29 history edited Manish Anand CC BY-SA 4.0
added 299 characters in body
Apr 28, 2020 at 4:54 history answered Manish Anand CC BY-SA 4.0