_get

Fetch the values of an array of settings.

Parameters

names

The array of settings whose values you want to retrieve.

Example

FM_api('Settings_get', ['names' => ['acc-labour-nominal',
                                    'acc-labour-taxtype',
                                    'acc-mileage-nominal',
                                    'acc-mileage-taxtype',
                                    'acc-rates-nominal',
                                    'acc-rates-taxtype',
                                    'acc-default-nominal',
                                    'acc-default-taxtype',
                                    'allow-job-import-with-duplicate-job-ref',
                                    'app-icon',
                                    'app-header',
                                    'appointment-amber-days',
                                    'appointment-priorities',
                                    'block-task-email-notifications',
                                    'company-address',
                                    'customer-landline-unique',
                                    'customer-portal-asset-set',
                                    'customers-require-landlines',
                                    'date-format',
                                    'default-vat',
                                    'disable-app-archives',
                                    'disable-app-customer-files',
                                    'disable-app-job-ref',
                                    'disable-app-referrals',
                                    'disable-appointment-time-in-progress-update',
                                    'disable-job-notification',
                                    'disable-job-ref-in-appointment-creation',
                                    'do-not-copy-customer-ref-to-new-recurrences',
                                    'do-not-copy-user-to-new-recurrences'
                                    'ip-restriction',
                                    'job-ref-method',
                                    'job-time-increments',
                                    'overtime-multiplier',
                                    'replyto-email',
                                    'recurrence-days'
                                    'restrict-appointment-selection',
                                    'schedule-of-rates-source',
                                    'stock-trigger-email',
                                    'time-format',
                                    'travel-is-labour-cost',
                                    'vat-registration-number',
                                    'week-begins',
                                    'wizard',
                                    'work-day-start',
                                    'work-day-end',
                                    'work-start-location']]);

Results

On Success

A JSON array of the submitted settings with their values, if they have any. For example:

On Failure

If the user is not logged in:

Last updated