Blackbaud Internet Solutions > REST API (Advanced Donation Form and Images) > 3.0 > Class: CodeTableService

Class: CodeTableService

BLACKBAUD.api.CodeTableService Provides methods for retrieving code table entries from the CRM using calls to the BBIS REST services.

new CodeTableService(options)

Parameters
Name Type Description
options Object An object literal containing one or more of the following optional properties:
  • url : The URL of the BBIS site from which the data will be retrieved. This value is optional when accessed from a BBIS page. The default value will be the BBIS URL of the current page.
  • crossDomain : Indicates the BBIS url specified is from a separate domain than the current page. When True, the class will handle the complexities of making cross domain requests to retrieve data. The default value is False.

API.js, line 194

Methods

getEntries(successCallback, failureCallback)

Returns the active code table entries for the specified code table Id ordered as configured in the CRM.

Parameters
Name Type Description
successCallback function The function to call if the request succeeds. The function will be passed an array of objects with the following properties:
  • Id : The Id of a code table entry.
  • Description : The description of a code table entry.
failureCallback function The function to call if the request fails.

API.js, line 225