Blogs
-
How do I deactivate a Portal User for given Contacts in Apex Code?
Here you go!!
-
Apex error – ‘List has no rows for assignment to SObject’
The error “List has no rows for assignment to SObject” occurs when query doesn’t return any rows. Resolution While a SELECT normally returns an array/list, these statements are using the shorthand syntax that assumes only one row is returned. What’s not obvious is that it also assumes that exactly one row is returned! Although this is…
-
Efficient Way to Access Custom Metadata Type in Apex
getAll() to get Custom Metadata Type Records Now let see how we can get Custom Metadata Type records with getAll() method. getInstance() to get Custom Metadata Type Record What about if you don’t need to get all record and need to access only single record? In that case you can use the getInstance() method.