You need to sign in to do that
Don't have an account?
The new Learner
Basic search functionality for users
Hi Experts,
I need Basic Search functionality where i need to search for Users information with the help of Email Id or User Number or Bid Number only one search box has to be there and also if there are related information i need to throw an error.
Please help me out.
Thanks in advance
I need Basic Search functionality where i need to search for Users information with the help of Email Id or User Number or Bid Number only one search box has to be there and also if there are related information i need to throw an error.
Please help me out.
Thanks in advance
// this assumes all search fields are strings
All Answers
Look at the the Object Manager > User > Search Layouts
And here too.
https://help.salesforce.com/articleView?id=search_fields_lex.htm&type=5
Else you're into SOQL territory I would imagine....
I need to write search functinality , i wrote but its not woking below is my code.
public class UserSearch {
String searchText;
List<user> results;
public String getSearchText() {
return searchText;
}
public void setSearchText(String s) {
searchText = s;
}
public List<user> getResults() {
return results;
}
public PageReference search() {
results = [select Name,User_number__C,Email,User_ID__c from user where Name=:searchText ];
return null;
}
}
// this assumes all search fields are strings
Thanks for the udpate its working fine, i need one more amendent if i wont found any data related name or user number or email , i need to show an error email. how can i add , kindly help me out.