Table of Contents

Advanced configuration of forms in BusinessMate

In BusinessMate it’s possible to set a dynamic value as defalt value using Javascript. The most common used is time and date. Select <> insted of the calendar and insert your oneline code. 

Samples for that could be time/date

Set time/date

 

now() | dateMinues({dayes: 1})

‘2021-10-01’ | datePlus({years: 1})

now() | datePlus({months: 3})

now() | dateMinus({hours: 8})

now() | datePlus({minutes: 45})

dateFns.addDays(new Date(),10)

addSeconds(date, amount)

dateFns.addSeconds(new Date(),10)

addMinutes(date, amount)

addHours(date, amount

 

subHours(date, amount)

// the last hour

dateFns.subHours(new Date(),1)

 

subHours(date, amount)

subDays(date, amount)

addWeeks(date, amount)

subWeeks(date, amount)

 

addMonths(date, amount)
addQuarters(date, amount)

addYears(date, amount)

 

interval/duration

differenceInHours(dateLeft, dateRight)

differenceInDays(dateLeft, dateRight)

The full documentation for the classed used to handle date and time, can be found here

 

The full documentation for the external REST calls, can be found here

user.id

 

 

var ret = new List(“users”);
ret.filter(“f_name”,“!=”,“Jackie”);
ret.filter(“f_name”;“!=”,“Pedro”);

 
filters: {
type: ‘FILTER_GROUP’,
logicalOp: ‘AND’,
filters: [
{
type: ‘FILTER’,
fieldApiName: ‘name’,
comparator: ‘is not’,
value: ‘Jackie’,
}, {
type: ‘FILTER’,
fieldApiName: ‘name’,
comparator: ‘is not’,
value: ‘Pedro’,
},
],

Copy the filter to clipboard and insert in data

filter pop-up

User

The user can create records dynamicly from the information form. The same values can be utilised in the update method and in scripts

user.first_name

user.last_name

user.email

user.phone

user.country

user.country_code

user.state

user.city

user.street_address

user.postal_code

user.organization.name

use user object
sample user object
Advanced forms
Advanced forms
Advanced forms
Advanced forms