Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • Login to your Salesforce Org where the package is Installed.

  • For Bulk SMS functionality, you have to create :-

  1. Visualforce Page

  2. Controller

  3. Application

Change the name of object accordingly . (Example for Lead object, you have to write standardController = “Lead“ instead of standardController = “Contact“)

Expand
titleCode for Visualforce page

Code Block
<apex:page standardController="Contact" recordSetVar="cons" extensions="SendBulkSMSActionController">
    
    
    <apex:includeLightning /> 
    <div id="LightningComponentid" />
    <div id="sampleContainer">
        <style type="text/css">
            .redAlert {
            font-weight: bold;
            color: #FF0000;
            font-size : 22px;
            text-decoration: none;
            text-align : center;
            }
            
        </style>
        
         <apex:form >
             <apex:outputPanel id="tstpopup">
                 <apex:outputPanel rendered="{!showLoading}" >          
                     <center>
                         <apex:outputText styleClass="redAlert" value="LOADING..."/><br/>
                     </center>
                 </apex:outputPanel>
             </apex:outputPanel>
            
            <apex:actionFunction name="getLoading" action="{!getLoadingValue}" reRender="tstpopup"></apex:actionFunction>
        </apex:form>
        
        <script>
        var GetIDs= '{!contactIds}';
        
        $Lightning.use("cm_datatransfer:SendBulkSMSApplication", function() {
            $Lightning.createComponent("cm_datatransfer:sendbulkSMSScreen",
                                       {
                                           //pass parameter values to lwc js controller
                                           listObjectIds : GetIDs
                                       },
                                       "LightningComponentid",
                                       function(cmp) {
                                           console.log('Insidedd');
                                           getLoading();
	                                       console.log('LWC Componenet added in VF page');
                                       });
            
            });
        
        </script>
        
       
    </div>
</apex:page>

...