You need to sign in to do that
Don't have an account?
Kerry Proksel
Lightning Component to show Assets on Account
I am trying to create a lightning component on the account record that shows active assets for that account. For some reason, it is showing me ALL assets on ALL account records. I followed the trailhead and got this to work for contacts, but not assets.
Here is my class:
Here is my class:
public class MyAssetListController { @AuraEnabled public static List<Asset> getAssets(Id recordID) { return [Select Id, Name, IsActive__c From Asset Where (IsActive__c = TRUE) AND AccountId = :recordID]; } }