You are here:
PremisesInterface
Return a list of premises for an account.
Type
Strongly typed
Triggered When
The PremisesInterface is triggered when the Vlocity Cart or review cart loads.
Called In
The PremisesInterface is called in the initializeData method of LineItemManagementController. The call uses the account ID for the opportunity, order, or quote.
Signature
Access |
Signature |
|---|---|
global |
|
Default Implementation
The DefaultPremisesImplementationDefaultPremisesImplementation returns a list of premises for an account. The default limit is 1,000.
Other Implementations
None
Input Parameters
accountId
Required
Type: Id
ID of the account for which to return the premises, for example,
Id
Output Parameters
Premises__c
Type: List
List of premises for the account ID, for example,
List<Premises__c>
Sample Implementation
The following code does not include a namespace. You must change any referenced package component to use the appropriate namespace.
global with sharing class SamplePremisesImplementation implements GlobalInterfaces.PremisesInterface
{
global List<Premises__c> getPremises(Id accountId)
{
List<Premises__c> allPremises;
allPremises = [SELECT
Id,
Name
FROM
Premises__c];
return allPremises;
}
}

