Gets Application Lookup for a specific lookup name defined in the Admin Section and Andi Skills Manager fixedRateTypeValue = fixedRateType.value.
fixedRateTypeValue = fixedRateType.value
{TypeError} if lookupName is missing
Getting the rate types then getting the value of the FixedType
// Ensure you import LookupPowers // import { LookupPowers } from "@andi/powers"; const rateTypes = await LookupPowers.getApplicationLookup("RateTypes"); const fixedRateType = rateTypes.values.find(value => value.name === "Fixed"); const fixedRateTypeValue = fixedRateType.value;
name of lookup
Gets Application lookups defined in the Admin Section and Andi Skills Manager
Finding the rate types from all the defined types then getting the value of the FixedType
// Ensure you import LookupPowers // import { LookupPowers } from "@andi/powers"; const applicationLookups = await LookupPowers.getApplicationLookups(); const rateTypes = applicationLookups.find(lookup => lookup.name === "RateTypes"); const fixedRateType = rateTypes.values.find(value => value.name === "Fixed"); const fixedRateTypeValue = fixedRateType.value;
All application lookups or an empty array if none exist.
Generated using TypeDoc
Gets Application Lookup for a specific lookup name defined in the Admin Section and Andi Skills Manager
fixedRateTypeValue = fixedRateType.value
.{TypeError} if lookupName is missing
Getting the rate types then getting the value of the FixedType
// Ensure you import LookupPowers // import { LookupPowers } from "@andi/powers"; const rateTypes = await LookupPowers.getApplicationLookup("RateTypes"); const fixedRateType = rateTypes.values.find(value => value.name === "Fixed"); const fixedRateTypeValue = fixedRateType.value;