This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. What is SOQL in Salesforce? | |
2. What is the Structure of the SOQL Query in Salesforce? | |
3. List All the Contact Records | |
4. List All the Contact Records where the Email is not blank | |
5. List All the Contact Records Where the Email is Blank | |
6. List All the Contact Records Where the Title contains the developer | |
7. List All the Contact Records Where the Title Starts with the Manager | |
8. List All the Opportunity Where the Amount is more than 29000 | |
9. List All the Opportunity count state wise | |
10. List All the Opportunity Amount Stage Wise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<lightning-card variant="Narrow"> | |
<lightning-spinner alternative-text="Loading" size="small" variant="brand" if:true={isloading} ></lightning-spinner> | |
<div class="slds-p-around_small"> | |
<lightning-button-group> | |
<lightning-button label="Approve" title="Approve" onclick={handleApprove}></lightning-button> | |
<lightning-button label="Reject" title="Reject" onclick={handleReject}></lightning-button> | |
<lightning-button if:true={showRecall} label="Recall" title="Recall" onclick={handleRevoke}></lightning-button> | |
</lightning-button-group> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LightningElement, track, wire } from 'lwc'; | |
import listAllMessages from '@salesforce/apex/WhatsAppLWCService.listAllMessages'; | |
import sendTextMessage from '@salesforce/apex/WhatsAppLWCService.sendTextMessage' | |
import getSingleMessage from '@salesforce/apex/WhatsAppLWCService.getSingleMessage'; | |
import { subscribe, unsubscribe, onError } from 'lightning/empApi'; | |
export default class Chatcomponent extends LightningElement { | |
@track messages; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PKCEOAuthHelper { | |
public static void printDetails(){ | |
String code_verifier = SFDC_GENERATE_RANDOM_STRING(56); | |
Blob sha256 = Crypto.generateDigest('SHA-256', Blob.valueOf(code_verifier)); | |
String code_challenge = SFDC_BASE64_URLENCODE(sha256); | |
System.debug('**** code_verifier **** \n '+code_verifier); | |
System.debug('**** code_challenge **** \n '+code_challenge); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LightningElement } from 'lwc'; | |
export default class UserInformation extends LightningElement { | |
/* The Example JSON file */ | |
person = { | |
"First Name": "Rack's", | |
"Last Name": "Jackon", | |
"Gender": "man", | |
"Age": 24, | |
"Street Address": "126", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TwilioService { | |
@InvocableMethod(label='Send Verification SMS' description='Send Verification SMS' category='Login' callout=true) | |
public static List<TwilioService.InputWrapper> run(List<TwilioService.InputWrapper> code){ | |
sendSMS(code.get(0)); | |
return code; | |
} | |
private static void sendSMS(TwilioService.InputWrapper input){ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"records": [ | |
{ | |
"attributes": { | |
"type": "Account", | |
"referenceId": "AccountRef1" | |
}, | |
"AccountId": 9000, | |
"Name": "Alpha Dynamics", | |
"Type": "Technology Partner", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"records": [ | |
{ | |
"attributes": { | |
"type": "Contact", | |
"referenceId": "ContactRef1" | |
}, | |
"Id": 1, | |
"AccountId": "@AccountRef1", | |
"FirstName": "Amy", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<lightning-card variant="Narrow" > | |
<lightning-spinner alternative-text="Loading" size="small" if:true={isLoading}></lightning-spinner> | |
<!--Display the button on the top--> | |
<p slot="actions" if:true={isTop}> | |
<lightning-button if:true={showButton} variant="brand" label={buttonLabel} title={buttonLabel} onclick={handleClick}></lightning-button> | |
</p> | |
<div class="slds-m-around_small" if:true={isTop}> | |
<lightning-progress-indicator current-step={currentValue} type={pathType} has-error="false" variant="shaded"> | |
<template if:true={pathValues} for:each={pathValues} for:item="step" for:index="index"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@isTest | |
public class LogoutEventTriggerTest { | |
@isTest | |
public static void logOutTest() { | |
LogoutEventStream stream = new LogoutEventStream( | |
); | |
EventBus.publish(stream); | |
} |