loadConfigRecordById

Loads a record of a specific app config from brixxbox server and returns a promise. This is a async function. You have to await the result, if you want to use it.

Parameters

  1. configName - the name of the app

  2. id - recordId to load

Result

The result is a brixxbox record object. All fieldvalues of that record are stored in data as key value pairs. (e.g. myRecord.data.addressName). The id of the record can be found in myRecord.id.

Example Usages

Simple (pay attention to the **[await](/globalDoc/glossary_await)** keyword)

   let myAddress= await brixxApi.loadConfigRecordById("address", 15); 
   let addressName = myAddress.data.name;
   let id = myAddress.is;

Last updated