Invoking a Queueable class from LWC

Execute a Queueable class when Salesforce community user access Lightning URL

<template>

<lightning-card title=”Execute GenerateQuoteQueueable” icon-name=”custom:custom63″>

<p class=”slds-m-bottom_small”>

<lightning-button label=”Execute Queue” onclick={handleLoad}></lightning-button>

</p>
<div class=”slds-m-around_medium”>

<template if:true={responseReceived}> {jobId} </template>

</div> </lightning-card></template>

Practice simplifying object- and field-level security checks with new Spring ’19 in Apex code

updated challenge code

How to identify User Theme?

Use these variables to identify the CSS used to render Salesforce web pages to a user. Both variables return one of the following values.

  • Theme1—Obsolete Salesforce theme
  • Theme2—Salesforce Classic 2005 user interface theme
  • Theme3—Salesforce Classic 2010 user interface theme
  • Theme4d—Modern “Lightning Experience” Salesforce theme
  • Theme4t—Salesforce mobile app theme
  • Theme4u—Lightning Console theme
  • PortalDefault—Salesforce Customer Portal theme
  • Webstore—Salesforce AppExchange theme

Did you know?

2. The inner class will be the only thing that runs outside of sharing context, everything else will still be in sharing context.

APEX Code Snippets

Reading inline Query data in APEX

 

JSONGenerator

This example generates a JSON string in pretty print format by using the methods of the JSONGenerator class

 

 

 

 

Best Salesforce Google Chrome extensions

 

Salesforce Navigator

Best of its kind. with control-shift-space you can reach to many setup pages in salesforce. I would suggest must have by every architect.

 

Force.com Logins

Too many salesforce username/passwords to remember. My favourite place to store all the logins. with one click I go to the org I want.

 

Salesforce Organizer

Salesforce Organizer better than Force.com Logins Extension. Intuitively adds your username/passwords to Organizer list whenever you try to login with a new salesforce username/password account

Salesforce Dev Tools

A powerful toolkit for Salesforce developer, includes Query Editor, Apex code, objects reference doc, ERDs generator, and others.Salesforce DevTools is a simple but powerful Salesforce developer chrome extension for doing the below things :

・Salesforce data modal (ERDs) generator.
・Easy export Objects Reference to Excel file.
・Display fields API name on Salesforce object detail page.
・Quick generate Apex code / SOQL.
・Quick access to new record page, list page and object setting page of any object.
・All Check / Select on profile edit page and field permissions edit page.

 

Salesforce Inspector

Productivity tools for Salesforce administrators and developers to inspect data and metadata directly from the Salesforce UI.

Extension to add a metadata layout on top of the standard Salesforce UI to improve the productivity and joy of Salesforce configuration, development, and integration work.