• Sujata Gusain 6
  • NEWBIE
  • 10 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 2
    Likes Given
  • 4
    Questions
  • 0
    Replies
<template>
  <div class="card lt-purple full mt-24">
    <h4>New Customers</h4>
    <p>
        Welcome new customers with love. Send them special deals and
        discounts via email.
    </p>
    <template if:true={renderTable} >
        <div class="table">
    <ul class="slds-list_horizontal">  
        <li for:each={topFiveContacts} for:item="item" key={item.Id}>
            <div class="user-pic"
            style="background-image: url('images/icons/icons_dash/user1.png')"></div>
            <span>{item.FirstName}</span>
        </li>
       <li if:true={viewAllContacts}>
            <div class="user-pic">+{remainingRecordsCount}</div>
            <span><a href="#">View All</a></span>
        </li>
    </ul>
    </div>
    </template>
</div>
 
</template>

 
<template>
  <div class="card lt-purple full mt-24">
    <h4>New Customers</h4>
    <p>
        Welcome new customers with love. Send them special deals and
        discounts via email.
    </p>
    <template if:true={renderTable}>
        <div class="table">
    <ul>
        <li for:each={contactsList} for:item="item" key={item.Id}>
            <div class="user-pic"> <img src= {item.PhotoUrl} alt={item.FirstName} /></div>
            <span>{item.FirstName}</span>
        </li>
       <li>
            <div class="user-pic">+{remainingRecordsCount}</div>
            <span><a href="#">View All</a></span>
        </li>
    </ul>
</div>
    </template>
</div>
 
</template>
I want to show my contact list like this.
User-added image
<template>
  <div class="card lt-purple full mt-24">
    <h4>New Customers</h4>
    <p>
        Welcome new customers with love. Send them special deals and
        discounts via email.
    </p>
    <template if:true={renderTable} >
        <div class="table">
    <ul class="slds-list_horizontal">  
        <li for:each={topFiveContacts} for:item="item" key={item.Id}>
            <div class="user-pic"
            style="background-image: url('images/icons/icons_dash/user1.png')"></div>
            <span>{item.FirstName}</span>
        </li>
       <li if:true={viewAllContacts}>
            <div class="user-pic">+{remainingRecordsCount}</div>
            <span><a href="#">View All</a></span>
        </li>
    </ul>
    </div>
    </template>
</div>
 
</template>

 
when i am trying to create one email to send the pdf to the customer 
but, the customer ask I need a password pdf when I am clicking pdf will be ask password and open it .....any clue?
I have a RestClient test class. In the following part I get this error,
static testmethod void testGet() { 
        RestClientSpy spy = new RestClientSpy();
        
        spy.send(RequestMethods.GET.name(), '/services/data', null);
        
        System.assertEquals(1, spy.getSendCount());
        System.assertEquals(null, spy.getHttpRequest().getBody()); 
        System.assertEquals('GET', spy.getHttpRequest().getMethod()); 
    }

"System.AssertException: Assertion Failed: Expected: null, Actual:"
I tried different things to make it work, still am unable to figure it out. Can anyone help me in this please?
TIA.