Billing Central API Developer Reference

ffbc.LookupService

global with sharing class LookupService

This class provides lists of wrappers which represent lookup field values.

Methods

getUnitsOfMeasure

global static List<ffbc.LookupService.Identity> getUnitsOfMeasure()

Query the ID and Name fields of all units of measure.

Return Value

The list of identities of the units of measure.

getCompanies

global static List<ffbc.LookupService.Identity> getCompanies()

Query the ID and Name fields of all companies.

Return Value

The list of identities of the companies.

getTaxCodes

global static List<ffbc.LookupService.Identity> getTaxCodes()

Query the ID and Name fields of all ERP tax codes.

Return Value

The list of identities of the tax codes.

getAccountsWithNameLike

global static List<ffbc.LookupService.Identity> getAccountsWithNameLike(String name)

Query the ID and Name fields of all accounts where the name contains the string provided.

Input Parameters

Name Type Description
name String The string that the Name of the Account must contain to be returned.

Return Value

The list of identities of the accounts, ordered by name.

getAccountsWithIds

global static List<ffbc.LookupService.Identity> getAccountsWithIds(Set<Id> accountIds)

Query the ID and Name fields of each account that has an ID, which is in the list of IDs provided.

Input Parameters

Name Type Description
accountIds Set<Id> A list of IDs to query against.

Return Value

The list of identities of the accounts.

getIdentities

global static List<ffbc.LookupService.Identity> getIdentities(ffbc.LookupService.IdentityRequest request)

Queries the identities of records of any SObject type.

Input Parameters

Name Type Description
request ffbc.LookupService.IdentityRequest The parameters for the query.

Return Value

The list of identities of the records matching the query.

ffbc.LookupService.Identity

global class Identity

This class models a lookup field value.

Properties

Name Type Description
ObjectId Id The Salesforce ID of the SObject being represented.
Name String The Name of the SObject being represented.

Methods

Identity

global Identity()

The default constructor for an Identity object.

ffbc.LookupService.IdentityRequest

global class IdentityRequest

This class contains the parameters for a query to obtain arbitrary SObject identities.

Properties

Name Type Description
SObjectType String The name of the SObject type for which to retrieve identities. When specifying object types from packages other than Billing Central, the namespace prefix must be included.
NameLike String Part or whole record names on which to filter.

Methods

IdentityRequest

global IdentityRequest()

The default constructor for this object.