Login to your Salesforce Org where the package is Installed.
For Bulk SMS functionality, you have to create :-
Visualforce Page
Controller
Application
Change the name of object accordingly . (Example for Lead object, you have to write standardController = “Lead“ instead of standardController = “Contact“)
Expand |
---|
title | Code 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> |
|
...