• Teran@18
  • NEWBIE
  • 20 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 0
    Replies
write test class to this

public with sharing class ContactSearchController{
    public string AccountName{get;set;}
    public list<Contact> lstContacts{get;set;}
    public ContactSearchController(ApexPages.StandardController controller) {
        lstContacts = new list<Contact>();
    }
    public void SearchContacts(){
        lstContacts = new list<Contact>();
        if(AccountName!=null && AccountName!=''){
            for(Contact con:[Select Id,FirstName,LastName,Email,(Select Id,UserName from Users where IsActive=true limit 1) from Contact where Account.Name=:AccountName])
            {
                lstContacts.add(con);
            }
        }
    }
    
    
    
}
Write an query to execute users under a profile are assigned to queues and public groups . 
When i execute the query i should get the details either the user is under the queue and public group are not...... 
Requirement :
Account :  
if i give account name, i should get details of that accounts contact . contact name,username,email,status.
Requirement :
Account : 
if i give account name, i should get details of that accounts contact .
contact name,username,email,status.
I have some link button like reassign in my profile i need to assign this button to other profile wt should i do.
 
Hi ,
I have started learning this , i know how to create app, dataflow
i just want to know how the data should be uploaded and how the dashboards reports all come in this.....
i need a very clear view to complete this from step 1 to last.
I hope i will get the Information........