January 21, 2021

How to show Visualforce page inside a Lightning Web Component in Salesforce?

Sample Code:

Visualforce:

<apex:page >
    
    Record Id from LWC is {!$CurrentPage.parameters.recId}
    
</apex:page>

HTML:
<template>

    <div class="slds-box slds-theme--default">
        <iframe src={siteURL} height="100px" width="150px"></iframe>
    </div>

</template>

JavaScript:
import { LightningElement,api } from 'lwc';  

export default class SampleRecordPage extends LightningElement {

    siteURL;
    @api recordId;

    connectedCallback() {
        
        this.siteURL = '/apex/Example?recId=' + this.recordId;

    }

}

JavaScript-meta.xml:

<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>50.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__RecordPage</target>
    </targets>
</LightningComponentBundle>

Output:


January 18, 2021

How to send Mass or Bulk SMS Messages from List View in Salesforce?

Note:
1. Digital Engagement license is required to use this feature.
2. SMS Channel should be setup in the org. Follow https://www.infallibletechie.com/2020/04/sms-channel-setup-in-digital-engagement.html for setting up.
 
Follow the below steps to send Mass or Bulk SMS Messages from List View.
 
1. Make sure the user have "Send One-to-Many Messages" Permission.

 
2. Open a List View.

3. Select the records.

4. Click Send Message button.