const newLookup = {
name: 'My New Lookup',
environments: [
{
formsAppEnvironmentId: 1,
urL: 'https://my-url.com/lookup',
},
],
type: 'DATA',
organisationId: '',
}
const createdLookup = await lookups.createFormElementLookup(newLookup)
// Use lookup here
const lookupId = 1
const lookup = await formElementLookups.getFormElementLookup(lookupId)
// Use lookup here
The exact id of the lookup you wish to get
const organisationId = '2i4321a7n2389a2700065425'
const lookups = await formElementLookups.searchFormElementLookups({
organisationId,
limit: 50,
offset: 0,
})
// Use lookups here
Optional
limit?: numberOptional
offset?: numberThe exact id of organisation associated with the lookups you wish to search
const lookup = {
id: 1,
createdAt: '2023-06-28T02:00:03.000Z',
updatedAt: '2023-06-28T02:00:03.000Z',
name: 'My New Lookup',
environments: [
{
formsAppEnvironmentId: 1,
url: 'https://my-url.com/lookup',
},
],
type: 'DATA',
organisationId: '',
}
const updatedLookup = await formElementLookups.updateFormElementLookup(
lookup,
)
// Use lookup here
Example