Billing Central Apex API Developer Reference

ffbc.LookupService

global with sharing class LookupService

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

Methods

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.

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.

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.

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.

Exceptions Thrown

Value Description
System.QueryException An exception is thrown when using this service with an SObject with an encrypted Name field.

Return Value

The list of identities of the records matching the query.

getTaxCodes

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

Query the ID and Name fields of all tax codes.

Return Value

The list of identities of the tax codes.

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.

ffbc.LookupService.Identity

global with sharing class Identity

This class models a lookup field value. This class is marked as serializable and deserializable to work around an issue in enforcing JsonAccess for Visualforce remoting requests. Warning: Do not rely on any behavior available via serializing as or deserializing from JSON that is not part of the global API because it might be subject to change.

Properties

Name Type Description
ObjectId Id The Salesforce ID of the SObject being represented.
Name String The Name of the SObject being represented.
ViewUrl String The URL of the view page for the SObject being represented.

Methods

Identity

global Identity()

The default constructor for an Identity object.

ffbc.LookupService.IdentityRequest

global with sharing 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.

© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.