Posts

Salesforce Developer Interview Questions

1. Difference between queueable and batch apex?  Batchable Apex: If it is a long-running complex process then you should go for Batchable Apex and you can have an option to schedule the batch to run at a customized time. It can process up to 50 million records in asynchronous mode. 5 concurrent jobs are allowed to run at a time and future methods are not allowed in the Batch class. Batch Class should implement Database. Batchable interface and it should have three methods start(), execute() and finish() methods. Queueable Apex: It comes in handy when you need to have both the operations of Batch and future method and it should implement Queueable Interface. If one job is dependent on another job means here we can chain the dependent job in execute method by system.enqueuejob(new secondJob()); You can also able to chain up to 50 jobs and in the developer edition, you can able to chain up to 5 jobs only. It will accept non-primitive types like sObjects and it also runs in asynchronous mo

Salesforce Admin Interview Questions

 1. What is Profile? A profile is a set of permissions and settings. Profile settings decide which data the user is able to view and permissions decide what the user is able to do with that data. A basic condition for user creation is a profile. without a profile, user-level creation is impossible. Each user has a single profile that determines which data and functionalities are available to them. The settings in A user's profile decide whether we can see a specific app, tab, field, or record type. The permissions in a user's profile control whether you are able to create or update records, run reports and customize the application. Profiles are typically associated with the job role of a user, such as a system administrator, recruiter or recruiting manager, but you can create profiles for anything that makes sense in your Salesforce org. A profile can be allocated to multiple users, but each user can have only one profile. To create a profile, go to, Setup-> manage users-&g

Lightning Web Components Specialist Superbadge Solution Similar Boats Component

 SIMILAR BOATS COMONENT similarBoats.html <template>     <lightning-card title={getTitle} icon-name="custom:custom54">       <lightning-layout multiple-rows="true">         <template if:true={noBoats}>           <p class="slds-align_absolute-center">There are no related boats by {similarBy}!</p>         </template>         <!-- Loop through the list of similar boats -->         <template for:each={relatedBoats} for:item="boat">           <!-- Responsive lightning-layout-item -->           <lightning-layout-item key={boat.Id} padding="around-small" size="12" small-device-size="6"            medium-device-size="4"  large-device-size="4">             <!-- Each boat tile goes here -->             <c-boat-tile boat={boat} onboatselect={openBoatDetailPage}></c-boat-tile>           </lightning-layout-item>         &

Lightning Web Components Specialist Superbadge Solution Five Star Rating Component

FIVE STAR RATING COMPONENT fiveStarRating.html <template>     <ul class={starClass}></ul> </template> fiveStarRating.js //import fivestar static resource, call it fivestar import { LightningElement, api } from 'lwc'; import fivestar from '@salesforce/resourceUrl/fivestar'; import { ShowToastEvent } from 'lightning/platformShowToastEvent'; import { loadStyle, loadScript } from 'lightning/platformResourceLoader'; // add constants here const ERROR_TITLE = 'Error loading five-star'; const ERROR_VARIANT = 'error'; const EDITABLE_CLASS = 'c-rating'; const READ_ONLY_CLASS = 'readonly c-rating'; export default class FiveStarRating extends LightningElement {   //initialize public readOnly and value properties   @api readOnly;   @api value;   editedValue;   isRendered;   //getter function that returns the correct class depending on if it is readonly   get starClass() {     return this.readOnly ? READ_ONLY_CLA

Lightning Web Components Specialist Superbadge Solution Boat Add Review Form Component

 BOAT ADD REVIEW FORM boatAddReviewForm.html <template>     <!-- lightning data service code -->     <!-- <lightning-record-edit-form> using boatReviewObject -->     <lightning-record-edit-form object-api-name={boatReviewObject} onsuccess={handleSuccess} onsubmit={handleSubmit}>         <lightning-messages></lightning-messages>          <lightning-layout multiple-rows vertical-align="start">         <lightning-layout-item size="8" padding="horizontal-small">           <div class="slds-form-element">                 <!-- review subject field code using nameField -->                 <lightning-input-field field-name={nameField}>                 </lightning-input-field>           </div>         </lightning-layout-item>         <lightning-layout-item size="4" padding="horizontal-small">           <div class="slds-form-element&qu

Lightning Web Components Specialist Superbadge Solution Boat Detail Tabs Component

BOAT DETAIL TABS boatDetailTabs.html <template>     <template if:false={wiredRecord.data}>       <!-- lightning card for the label when wiredRecord has no data goes here  -->         <lightning-card class= "slds-align_absolute-center no-boat-height">             <span>{label.labelPleaseSelectABoat}</span>         </lightning-card>     </template>     <template if:true={wiredRecord.data}>        <!-- lightning card for the content when wiredRecord has data goes here  -->        <lightning-card>            <lightning-tabset variant="scoped">                <lightning-tab label={label.labelDetails}>                    <lightning-card icon-name={detailsTabIconName} title={boatName}>                        <lightning-button slot="actions" title={boatName} label={label.labelFullDetails} onclick={navigateToRecordViewPage}></lightning-button>                        <

Lightning Web Components Specialist Superbadge Solution Boat Map Component

 BOAT MAP COMPONENT boatMap.html <template>   <lightning-card title="Current Boat Location" icon-name="action:map">     <template if:true={showMap}>       <lightning-map map-markers={mapMarkers} zoom-level="10"></lightning-map>     </template>     <template if:false={showMap}>       <span class="slds-align_absolute-center">         Please select a boat to see its location!       </span>     </template>   </lightning-card> </template> boatMap.js import { LightningElement, api, wire } from 'lwc'; import { getRecord } from 'lightning/uiRecordApi'; // import BOATMC from the message channel import { APPLICATION_SCOPE, MessageContext, subscribe, unsubscribe } from 'lightning/messageService'; import BOATMC from '@salesforce/messageChannel/BoatMessageChannel__c'; // Declare the const LONGITUDE_FIELD for the boat's Longitude__s // Declare the const

Popular posts from this blog

Lightning Web Components Specialist Superbadge Solution Boat Tile Component

Lightning Web Components Specialist Superbadge Solution Boat Search Results Component

Lightning Web Components Specialist Superbadge Solution Boat Search Form Component