• Cloud Elite
  • NEWBIE
  • 70 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 32
    Replies
We create a new lightning component that allow to send a message as email. Within this component we are adding the ability to use quick texts. However, we were not able to get the pop up similar to what Standard quick text offer such as the searching the list within the quick text. Is there a component or attribute we should use to get the same exact pop up ? 

here is what we go to so far 

User-added image
Is it possible to insert a feeditem of type Contentpost triggered from email message ? and set the visibility to "AllUsers" ? 

We currently need a way to show those feeds to the portal users on a custom front end for only emails sent to the case contact. 
Hello all, 

I would like to know if possible to populated a custom field I created on Article (knowledge__kav) called Cat__c with whatever the user add on the data category ? how can I accomplished this ? 

Also I want to be able to prevent publishing the article or submitting it for approval without adding atleast one data category ? can I use a custom button "submit for approval" that calls a flow that check first if a data category assigned and then if yes, it will proceed to submit for approval and if no, it will throw an error ? Please advise ? 

also how can I route the approval to different queues based on data category ? 

 
Hello all, 

I need some help to understanf the dependency and feasibility of integratng a website to salesforce. Here is my use case that I need help with: 

We have a system (act as a front end) for users to review status of their contacts based on region. each region will show a number of contacts that the user can create a request against all of them for processing based on the region. One request to be submitted, when the request is completed and submitted, we want to send the request to salesforce to create the request and assign the contacts to that request in salesforce (Salesforce was populated with the contacts from the front end system manually). 

Now, we have in Salesforce the contact object and Request object, the request object will capture the request information filled on the front end page. We also have a junction object between contact and Request object called Request members so that we can assign as many contacts to relate to the request record, this object is called Request members. 

Now, what integration method is applicable here that will allow me to first insert a request record, capture the record id, and then use that ID to related the Request members to it and the contacts eventually ? 

I need to be able to present in salesforce that there is one request for these 10 contacts, and type of that request was region. 

Should i use rest api ? How it will work ? please provide the logical sequence for this type of integration. 
 
Hello All, 

I tried to build a lightning component to have a button that when clicked, the case is accepted to the user who cliced it, mainly a case that was assigned to a queue. 

here is the code i have so far but need your help in what is missing, when i try to save the controller, i get an error. can you please review and correct ? 
 
component 
==========

<aura:component implements="force:hasRecordId,force:lightningQuickActionWithoutHeader">
  <aura:attribute name="record" type="Case" default="{ 'sobjectType': 'Case' }" />
  <aura:attribute name="complete" type="Boolean" default="false" />
  <force:recordData recordId="{!v.recordId}"
                    fields="['CaseNumber','OwnerId','OwnerFullName']"
                    targetFields="{!v.record}"
                    aura:id="recordData"
                    recordUpdated="{!c.recordLoaded}" />

</aura:component>
====


controller 
======= 

({ 
  recordLoaded: function(component, event, helper) {
    var caseRecord = component.get("v.record"),
      recordData = component.find("recordData");
    caseRecord.OwnerId = component.get("$SObjectType.CurrentUser.Id");
    if(!component.get("v.complete")) { // Avoid infinite loop
      component.set("v.complete", true);
      component.set("v.record", caseRecord);
      recordData.saveRecord($A.getCallback(function(result) {
        if(result.state === "SUCCESS" || result.state === "DRAFT") {
          $A.get("e.force:closeQuickAction").fire();
          $A.get("e.force:refreshView").fire();
        } else { /* show an error here */ }
      }));
  }
})

 
hello all, 

i put together a lighenting componet with a control to present the lead record fields in table format, however, it is not working. the table came correct but not responsive. i need to be able to edit the fields on it and also save and cancel if edited. i tried lightening data table but it does not list the data/fields in the format it need it. here is my code so far: 

component: 
 
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global">
    <aura:attribute name="lead" type="Lead"/>
			<lightning:recordViewForm aura:id="viewForm" recordId="{!v.lead.Id}" objectApiName="Lead">
                 <div class="slds-media">
                  <div class="slds-scope">
    <lightning:buttonIcon iconName="utility:edit" class="slds-col_bump-left" iconClass="slds-button__icon_hint" variant="bare" alternativeText="Edit Record" onclick="{!c.editRecord}" />
    <div class="slds-table_edit_container slds-is-relative">
       <table class="slds-table slds-table_bordered slds-table_edit slds-table_fixed-layout slds-table_cell-buffer"> 
        <table class="slds-table slds-table_bordered slds-table_cell-buffer slds-table_col-bordered"> 
        <thead>
            <tr class="slds-text-title_caps slds-text-heading--label">
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="Class">Class</div>  
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="Scheduled">Scheduled</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Claimed">Claimed</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Allowed">Allowed</div>       
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="CUD">CUD</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Status">Status</div>       
                </th>     
            </tr>
        </thead>
        <tbody>
            <tr>
                <td scope="row" >
                    Secured
                </td>
                <td>
                 <lightning:outputField fieldName="Secured_Scheduled_Amount__c"/>
                </td>
                <td> 
                  <lightning:outputField fieldName="Secured_Claimed_Amount__c"/>
                </td>
                <td>
                  <lightning:outputField fieldName="Secured_Allowed_Amount__c"/>
                </td>
                <td>
                    <lightning:outputField fieldName="Secured_CUD__c"/>
                </td>
                <td>
                    <lightning:outputField fieldName="Secured_Claim_Status__c"/>
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Unsecured 
                </td>
                <td>
                  <lightning:outputField fieldName="Unsecured_Scheduled_Amount__c"/>
                </td>
                <td> 
                  <lightning:formattedNumber value="{!v.Lead.Unsecured_Claimed_Amount__c}" style="currency"/>
                </td>
                <td>
                  <lightning:formattedNumber value="{!v.Lead.Unsecured_Allowed_Amount__c}" style="currency"/>
                </td>
                <td>
                    {!v.Lead.UnSecured_CUD__c}
                </td>
                <td>
                    {!v.Lead.Unsecured_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Priority 
                </td>
                <td>
                  <lightning:formattedNumber value="{!v.Lead.Priority_Scheduled_Amount__c}" style="currency"/>
                </td>
                <td> 
                  <lightning:formattedNumber value="{!v.Lead.Priority_Claimed_Amount__c}" style="currency"/>
                </td>
                <td>
                  <lightning:formattedNumber value="{!v.Lead.Priority_Allowed_Amount__c}" style="currency"/>
                </td>
                <td>
                    {!v.Lead.Priority_CUD__c}
                </td>
                <td>
                    {!v.Lead.Priority_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Admin 
                </td>
                <td>
                <lightning:formattedNumber value="{!v.Lead.Admin_Scheduled_Amount__c}" style="currency"/> 
                </td>
                <td> 
                 <lightning:formattedNumber value="{!v.Lead.Admin_Claimed_Amount__c}" style="currency"/>
                </td>
                <td>
                 <lightning:formattedNumber value="{!v.Lead.Admin_Allowed_Amount__c}" style="currency"/>
                </td>
                <td>
                    {!v.Lead.Admin_CUD__c}
                </td>
                <td>
                    {!v.Lead.Admin_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Admin503B 
                </td>
                <td>
                 <lightning:formattedNumber value="{!v.Lead.Admin503B_Scheduled_Amount__c}" style="currency"/>
                </td>
                <td> 
                 <lightning:formattedNumber value="{!v.Lead.Admin503B_Claimed_Amount__c}" style="currency"/>
                </td>
                <td>
                 <lightning:formattedNumber value="{!v.Lead.Admin503B_Allowed_Amount__c}" style="currency"/>
                </td>
                <td>
                    {!v.Lead.Admin503B_CUD__c}
                </td>
                <td>
                    {!v.Lead.Admin503B_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Totals  
                </td>
                <td>
                   <lightning:formattedNumber value="{!v.Lead.Scheduled_Total__c}" style="currency"/> 
                </td>
                <td>
                  <lightning:formattedNumber value="{!v.Lead.Claimed_Total__c}" style="currency"/>
                </td>
                <td>
                   <lightning:formattedNumber value="{!v.Lead.Allowed_Total__c}" style="currency"/>
                </td>
                <td>
                    
                </td>
                <td>
                    
                </td>
            </tr>
        </tbody> 
    </table>
    </table>
                      </div>
    </div>
                </div>
	</lightning:recordViewForm>
</aura:component>
controller: 
 
({
    navToRecord : function (component, event, helper) {
        var navEvt = $A.get("e.force:navigateToSObject");
        navEvt.setParams({
            "recordId": component.get("v.lead.Id")
        });
        navEvt.fire();
    },
    editRecord : function(component, event, helper) {
    var editRecordEvent = $A.get("e.force:editRecord");
    editRecordEvent.setParams({
        "recordId": component.get("v.lead.Id")
    });
    editRecordEvent.fire();
}
})


 
is there any other alternative for the following code to work ? i need lightening component instead. 
 
<apex:page standardController="Lead" tabStyle="Lead" sidebar="false" lightningStylesheets="true" docType="HTML-5.0" >

    <script src="/soap/ajax/43.0/connection.js" type="text/javascript"/>
    
    <script>
        function ReloadPage(){
            setTimeout(function(){ window.top.location='/{!Lead.Id}'; }, 100);
        }
    </script>
 
 <apex:form >
    <apex:inlineEditSupport showOnEdit="SaveButton" /> 
    <apex:slds />
    <div class="slds-scope">
    <center>
        <apex:commandButton value="Save" action="{!Save}" onclick="ReloadPage()" style="display: none;" id="SaveButton" />
    </center>
    
    <table class="slds-table slds-table_bordered slds-table_cell-buffer"> 
    
        <table class="slds-table slds-table_bordered slds-table_cell-buffer slds-table_col-bordered"> 
    
        <thead>
            <tr class="slds-text-title_caps slds-text-heading--label">
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="Class">Class</div>  
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="Scheduled">Scheduled</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Claimed">Claimed</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Allowed">Allowed</div>       
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="CUD">CUD</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Status">Status</div>       
                </th>     
            </tr>
        </thead>
        <tbody>
            <tr>
                <td scope="row" >
                    Secured
                </td>
                <td>
                    {!Lead.Secured_CUD__c}
                </td>
                <td>
                    {!Lead.Secured_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Unsecured 
                </td>
                <td>
                    {!Lead.UnSecured_CUD__c}
                </td>
                <td>
                    {!Lead.Unsecured_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Priority 
                </td>
                <td>
                    {!Lead.Priority_CUD__c}
                </td>
                <td>
                    {!Lead.Priority_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Admin 
                </td>
                <td>
                    {!Lead.Admin_CUD__c}
                </td>
                <td>
                    {!Lead.Admin_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Admin503B 
                </d>
                <td>
                    {!Lead.Admin503B_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Totals  
                </td>
                <td>
                    <apex:outputfield value="{!Lead.Scheduled__c}"/>
                </td>
                <td>
                    <apex:outputfield value="{!Lead.Claimed-__c}"/>
                </td>
                <td>
                    <apex:outputfield value="{!Lead.Allowed__c}"/>
                </td>
                <td>
                    
                </td>
                <td>
                    
                </td>
            </tr>
        </tbody> 
    </table>
    </table>
    </div>
  </apex:form>
</apex:page>

 
Is it possible to declacitvity be able to populate a field on the lead with the last activity info ? such as {Activity.Created By} + ‘: “ + {Activity.Subject} + ‘ - “ + {Activity.FullComments} . ? 

if that needs code or trigger, can you please provide me with that ? 
HI All, 

i need small help here. i need to present the label of the field not only its value as hyperlinked . here is the code i have and screen shots of how it looks. 
 
<aura:component >
    <aura:attribute name="lead" type="Lead"/>
			<lightning:recordViewForm aura:id="viewForm" recordId="{!v.lead.Id}" objectApiName="Lead">
                 <div class="slds-media">
                    <div class="slds-media__figure">
                        <img src="{!v.lead.Thumbnail__c}" class="slds-avatar_large slds-avatar_circle" alt="{!v.targetFields.Title_c}"/>
                    </div>
                    <div class="slds-media__body">
                        <lightning:layout title="External Claim Number" class="slds-hint-parent">
                            <a onclick="{!c.navToRecord}">
                                <h3 class="slds-text-heading_small slds-m-bottom_xx-small">{!v.lead.External_Claim_Number__c}</h3>
                            </a>

                        <lightning:buttonIcon iconName="utility:edit" class="slds-col_bump-left" iconClass="slds-button__icon_hint" variant="bare" alternativeText="Edit Record" onclick="{!c.editRecord}" />
                        </lightning:layout>

the field is External Claim Number, currently the value is highlighted which is fine. however, i want the label of the field to come right above or before. 

here is a screen shot to make it clear. 
User-added image
Hello All, 

i am working on a class that i want it to retrun similar leads that match the same name and another field. i am using that class to display on a page. However, i am stuck with the code a little bit.  here is the code: 
 
public with sharing class MyLeadController {

    public static List<Lead> findLeads (Id recordId, String bank) {
        List<Lead> lead = [SELECT name, bank__c FROM Lead WHERE Id=:recordId];
        String leadName = lead.name;
        List<Lead> similarLeads = getSimilarLeads(recordId, bank, leadName);
        return similarLeads;
    }
    return [
            SELECT Id, company, bank__c, debtor__c
            FROM Lead WHERE Id != :recordId AND bank__c = :recordid.bank__c
        ];
    }
something worng in my class, what i need to for it return similar leads that match the same lead name and bank__c name field. then i will choose other fields from those leads to use on my page. 
 
how to add a global action or button, that by clicking on it, it will start the job batch ? 

here is the code to start the job in console 

Id batchJobId = Database.executeBatch(new FindAccounts(), 100);

 
hello all, 

i had to create a custom tab and link it to a ligening compoent so tht if i click on the tab, i will open a list view i created on the account object. I did that but it opens in a new window while i want to keep it within the current window. here is what i created: 

cmp 
 
<aura:component implements="force:appHostable" >
	<aura:handler name="init" value="{!this}" action="{!c.init}"/>
</aura:component>

js
 
({
    init : function(component, event, helper) {
        window.open("one/one.app#/sObject/Account/list?filterName=00B3D000001YKO7UAO",'_target');
        window.history.back();
    }
})

i am hopping there is someting else to relpace the window.open to something else to keep the page within the current one. any help ? ​
I have this requirement, i want to add a tab that when i click on it, it will open a page that will allow me to report on the lead object data. the lead has two lookup to the account object. one for the parent account and the other for childs. i want to be able to filter the records on the page based on those fields. so for example, in the first field, i will filter by the parent account field where i can search for "SFDC" and then in the child account field, i should be able to choose one of the child of the parent account. prefereably as picklist (in case i don't know the name of the account) 

when i choose the filter, i want to be able to apply list views filters as well or some other field filter such as status. then i want to see all lead records related to that and should be able to select all and click add to campaign button.   can you please guide me with that ? 

 
we have duplicate leads with different amounts, we want to be able to keep the one with the highest amount and the rest keep them inactive till users decide to keep them or delete them. is there a way i cna identify this automaticall and field update the ones with less  amount with in-active ? 

can this done by flows ? or apex? 
Can you please help me with creating the same behavior as salesforce did it and be able to use it in the community cloud. see attached screen shot below. please help me also with providing where to place that to be triggered as soon as a user login to the community. 

User-added image
 
Hi all, 

I need help to build a table in VF to present fields in a certain way. here is the example i have: 

i have 9 fields labeled as follow: 
1. Secure Allowed, 2. Secured availble, 3. Secured status
4. UnSecured Allowed, 5. UnSecured available, 6. UnSecured status 
7. Priority Allowed, 2. Priority availble, 3. Priority status

the fields should be presented in a table with the following Row labels and column labeles: 

Table                Allowed | Available | Status 
Secured:                        |                |
UnSecured:                   |                |
Priority:                          |                |


i hope this make sense, please let me know how do to that, those fields are on the lead object. 
Hello all, 

I need some help to understanf the dependency and feasibility of integratng a website to salesforce. Here is my use case that I need help with: 

We have a system (act as a front end) for users to review status of their contacts based on region. each region will show a number of contacts that the user can create a request against all of them for processing based on the region. One request to be submitted, when the request is completed and submitted, we want to send the request to salesforce to create the request and assign the contacts to that request in salesforce (Salesforce was populated with the contacts from the front end system manually). 

Now, we have in Salesforce the contact object and Request object, the request object will capture the request information filled on the front end page. We also have a junction object between contact and Request object called Request members so that we can assign as many contacts to relate to the request record, this object is called Request members. 

Now, what integration method is applicable here that will allow me to first insert a request record, capture the record id, and then use that ID to related the Request members to it and the contacts eventually ? 

I need to be able to present in salesforce that there is one request for these 10 contacts, and type of that request was region. 

Should i use rest api ? How it will work ? please provide the logical sequence for this type of integration. 
 
Hello All, 

I tried to build a lightning component to have a button that when clicked, the case is accepted to the user who cliced it, mainly a case that was assigned to a queue. 

here is the code i have so far but need your help in what is missing, when i try to save the controller, i get an error. can you please review and correct ? 
 
component 
==========

<aura:component implements="force:hasRecordId,force:lightningQuickActionWithoutHeader">
  <aura:attribute name="record" type="Case" default="{ 'sobjectType': 'Case' }" />
  <aura:attribute name="complete" type="Boolean" default="false" />
  <force:recordData recordId="{!v.recordId}"
                    fields="['CaseNumber','OwnerId','OwnerFullName']"
                    targetFields="{!v.record}"
                    aura:id="recordData"
                    recordUpdated="{!c.recordLoaded}" />

</aura:component>
====


controller 
======= 

({ 
  recordLoaded: function(component, event, helper) {
    var caseRecord = component.get("v.record"),
      recordData = component.find("recordData");
    caseRecord.OwnerId = component.get("$SObjectType.CurrentUser.Id");
    if(!component.get("v.complete")) { // Avoid infinite loop
      component.set("v.complete", true);
      component.set("v.record", caseRecord);
      recordData.saveRecord($A.getCallback(function(result) {
        if(result.state === "SUCCESS" || result.state === "DRAFT") {
          $A.get("e.force:closeQuickAction").fire();
          $A.get("e.force:refreshView").fire();
        } else { /* show an error here */ }
      }));
  }
})

 
hello all, 

i put together a lighenting componet with a control to present the lead record fields in table format, however, it is not working. the table came correct but not responsive. i need to be able to edit the fields on it and also save and cancel if edited. i tried lightening data table but it does not list the data/fields in the format it need it. here is my code so far: 

component: 
 
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global">
    <aura:attribute name="lead" type="Lead"/>
			<lightning:recordViewForm aura:id="viewForm" recordId="{!v.lead.Id}" objectApiName="Lead">
                 <div class="slds-media">
                  <div class="slds-scope">
    <lightning:buttonIcon iconName="utility:edit" class="slds-col_bump-left" iconClass="slds-button__icon_hint" variant="bare" alternativeText="Edit Record" onclick="{!c.editRecord}" />
    <div class="slds-table_edit_container slds-is-relative">
       <table class="slds-table slds-table_bordered slds-table_edit slds-table_fixed-layout slds-table_cell-buffer"> 
        <table class="slds-table slds-table_bordered slds-table_cell-buffer slds-table_col-bordered"> 
        <thead>
            <tr class="slds-text-title_caps slds-text-heading--label">
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="Class">Class</div>  
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="Scheduled">Scheduled</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Claimed">Claimed</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Allowed">Allowed</div>       
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="CUD">CUD</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Status">Status</div>       
                </th>     
            </tr>
        </thead>
        <tbody>
            <tr>
                <td scope="row" >
                    Secured
                </td>
                <td>
                 <lightning:outputField fieldName="Secured_Scheduled_Amount__c"/>
                </td>
                <td> 
                  <lightning:outputField fieldName="Secured_Claimed_Amount__c"/>
                </td>
                <td>
                  <lightning:outputField fieldName="Secured_Allowed_Amount__c"/>
                </td>
                <td>
                    <lightning:outputField fieldName="Secured_CUD__c"/>
                </td>
                <td>
                    <lightning:outputField fieldName="Secured_Claim_Status__c"/>
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Unsecured 
                </td>
                <td>
                  <lightning:outputField fieldName="Unsecured_Scheduled_Amount__c"/>
                </td>
                <td> 
                  <lightning:formattedNumber value="{!v.Lead.Unsecured_Claimed_Amount__c}" style="currency"/>
                </td>
                <td>
                  <lightning:formattedNumber value="{!v.Lead.Unsecured_Allowed_Amount__c}" style="currency"/>
                </td>
                <td>
                    {!v.Lead.UnSecured_CUD__c}
                </td>
                <td>
                    {!v.Lead.Unsecured_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Priority 
                </td>
                <td>
                  <lightning:formattedNumber value="{!v.Lead.Priority_Scheduled_Amount__c}" style="currency"/>
                </td>
                <td> 
                  <lightning:formattedNumber value="{!v.Lead.Priority_Claimed_Amount__c}" style="currency"/>
                </td>
                <td>
                  <lightning:formattedNumber value="{!v.Lead.Priority_Allowed_Amount__c}" style="currency"/>
                </td>
                <td>
                    {!v.Lead.Priority_CUD__c}
                </td>
                <td>
                    {!v.Lead.Priority_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Admin 
                </td>
                <td>
                <lightning:formattedNumber value="{!v.Lead.Admin_Scheduled_Amount__c}" style="currency"/> 
                </td>
                <td> 
                 <lightning:formattedNumber value="{!v.Lead.Admin_Claimed_Amount__c}" style="currency"/>
                </td>
                <td>
                 <lightning:formattedNumber value="{!v.Lead.Admin_Allowed_Amount__c}" style="currency"/>
                </td>
                <td>
                    {!v.Lead.Admin_CUD__c}
                </td>
                <td>
                    {!v.Lead.Admin_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Admin503B 
                </td>
                <td>
                 <lightning:formattedNumber value="{!v.Lead.Admin503B_Scheduled_Amount__c}" style="currency"/>
                </td>
                <td> 
                 <lightning:formattedNumber value="{!v.Lead.Admin503B_Claimed_Amount__c}" style="currency"/>
                </td>
                <td>
                 <lightning:formattedNumber value="{!v.Lead.Admin503B_Allowed_Amount__c}" style="currency"/>
                </td>
                <td>
                    {!v.Lead.Admin503B_CUD__c}
                </td>
                <td>
                    {!v.Lead.Admin503B_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Totals  
                </td>
                <td>
                   <lightning:formattedNumber value="{!v.Lead.Scheduled_Total__c}" style="currency"/> 
                </td>
                <td>
                  <lightning:formattedNumber value="{!v.Lead.Claimed_Total__c}" style="currency"/>
                </td>
                <td>
                   <lightning:formattedNumber value="{!v.Lead.Allowed_Total__c}" style="currency"/>
                </td>
                <td>
                    
                </td>
                <td>
                    
                </td>
            </tr>
        </tbody> 
    </table>
    </table>
                      </div>
    </div>
                </div>
	</lightning:recordViewForm>
</aura:component>
controller: 
 
({
    navToRecord : function (component, event, helper) {
        var navEvt = $A.get("e.force:navigateToSObject");
        navEvt.setParams({
            "recordId": component.get("v.lead.Id")
        });
        navEvt.fire();
    },
    editRecord : function(component, event, helper) {
    var editRecordEvent = $A.get("e.force:editRecord");
    editRecordEvent.setParams({
        "recordId": component.get("v.lead.Id")
    });
    editRecordEvent.fire();
}
})


 
is there any other alternative for the following code to work ? i need lightening component instead. 
 
<apex:page standardController="Lead" tabStyle="Lead" sidebar="false" lightningStylesheets="true" docType="HTML-5.0" >

    <script src="/soap/ajax/43.0/connection.js" type="text/javascript"/>
    
    <script>
        function ReloadPage(){
            setTimeout(function(){ window.top.location='/{!Lead.Id}'; }, 100);
        }
    </script>
 
 <apex:form >
    <apex:inlineEditSupport showOnEdit="SaveButton" /> 
    <apex:slds />
    <div class="slds-scope">
    <center>
        <apex:commandButton value="Save" action="{!Save}" onclick="ReloadPage()" style="display: none;" id="SaveButton" />
    </center>
    
    <table class="slds-table slds-table_bordered slds-table_cell-buffer"> 
    
        <table class="slds-table slds-table_bordered slds-table_cell-buffer slds-table_col-bordered"> 
    
        <thead>
            <tr class="slds-text-title_caps slds-text-heading--label">
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="Class">Class</div>  
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="Scheduled">Scheduled</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Claimed">Claimed</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Allowed">Allowed</div>       
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                  <div class="slds-truncate" title="CUD">CUD</div>      
                </th>
                <th scope="col" class="slds-cell-buffer_left">
                 <div class="slds-truncate" title="Status">Status</div>       
                </th>     
            </tr>
        </thead>
        <tbody>
            <tr>
                <td scope="row" >
                    Secured
                </td>
                <td>
                    {!Lead.Secured_CUD__c}
                </td>
                <td>
                    {!Lead.Secured_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Unsecured 
                </td>
                <td>
                    {!Lead.UnSecured_CUD__c}
                </td>
                <td>
                    {!Lead.Unsecured_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Priority 
                </td>
                <td>
                    {!Lead.Priority_CUD__c}
                </td>
                <td>
                    {!Lead.Priority_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Admin 
                </td>
                <td>
                    {!Lead.Admin_CUD__c}
                </td>
                <td>
                    {!Lead.Admin_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Admin503B 
                </d>
                <td>
                    {!Lead.Admin503B_Claim_Status__c}
                </td>
            </tr>
            <tr>
                <td scope="row" >
                    Totals  
                </td>
                <td>
                    <apex:outputfield value="{!Lead.Scheduled__c}"/>
                </td>
                <td>
                    <apex:outputfield value="{!Lead.Claimed-__c}"/>
                </td>
                <td>
                    <apex:outputfield value="{!Lead.Allowed__c}"/>
                </td>
                <td>
                    
                </td>
                <td>
                    
                </td>
            </tr>
        </tbody> 
    </table>
    </table>
    </div>
  </apex:form>
</apex:page>

 
Is it possible to declacitvity be able to populate a field on the lead with the last activity info ? such as {Activity.Created By} + ‘: “ + {Activity.Subject} + ‘ - “ + {Activity.FullComments} . ? 

if that needs code or trigger, can you please provide me with that ? 
how to add a global action or button, that by clicking on it, it will start the job batch ? 

here is the code to start the job in console 

Id batchJobId = Database.executeBatch(new FindAccounts(), 100);

 
Can you please help me with creating the same behavior as salesforce did it and be able to use it in the community cloud. see attached screen shot below. please help me also with providing where to place that to be triggered as soon as a user login to the community. 

User-added image