JS Client API
  • Getting Started
  • Rule Engine Unique Functions
  • Custom Form Window Functions
  • Known Issues
  • Use Cases & Code Samples
  • Retrieving Data
    • Retrieving Standard Resources
    • Retrieving User Defined Tables
    • Retrieving Attachments
    • Retrieving Items in Transaction Scope
    • Retrieving Transaction Lines
    • ADAL
  • Updating Data
    • Adding Objects to Standard Resources
    • Updating Standard resources
    • Updating User Defined Table
    • Updating Items in Transaction Scope
    • Adding Transaction Lines
    • Removing Transaction Lines
Powered by GitBook
On this page
  • Get by key
  • Get entire table

Was this helpful?

  1. Retrieving Data

ADAL

Retrieving ADAL tables

ADAL tables that are defined to be cpi-meta-data are available within the client API.

Supported from CPI 17.00

Get by key

Get ADAL object by Key.

pepperi.api.adal.get({
    "addon": "bb6ee826-1c6b-4a11-9758-40a46acb69c5", // the addon UUID
    "table": "SomeTable", // the ADAL table name
    "key": "bb6ee826-1c6b-4a11-9758-40a46acb69c5" // The Key of the ADAL row
});

Returns:

{
   "success": true, 
   "object": {
      "Key": "bb6ee826-1c6b-4a11-9758-40a46acb69c5",
      "Any": "other",
      "Fields": [ "That", "exist", "on", "the", "ADAL" ],
      "Object": true
   }
}

Get entire table

Get ADAL table by name

pepperi.api.adal.get({
    "addon": "bb6ee826-1c6b-4a11-9758-40a46acb69c5", // the addon UUID
    "table": "SomeTable", // the ADAL table name
});

Returns:

{
   "success": true, 
   "objects": [{
      "Key": "bb6ee826-1c6b-4a11-9758-40a46acb69c5",
      "Any": "other",
      "Fields": [ "That", "exist", "on", "the", "ADAL" ],
      "Object": true
   }]
}
PreviousRetrieving Transaction LinesNextAdding Objects to Standard Resources

Last updated 4 years ago

Was this helpful?