Loading
Get Started with Communications, Media, and Energy & Utilities (CME)...
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          PremisesInterface

          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

          List getPremises(Id AccountId)

          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

          Note
          Note

          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;
             }
          }
           
          Loading
          Salesforce Help | Article