Created
July 10, 2019 10:42
-
-
Save sakthivelsfdc/2e4a1d9ad063b13cbb02e6bac9100f06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class AccountController { | |
/* | |
Method: searchAccount | |
Para: Account Name | |
here passing the Account Name to Fetching all the releated Accounts | |
*/ | |
@AuraEnabled (cacheable = true) | |
public static List<Account> searchAccount(String accName) { | |
string strAccName = '%'+ accName + '%'; | |
return [Select Id, Name, Website, Industry, Phone from Account WHERE Name LIKE: strAccName ]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment