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
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
Copy the filter to clipboard and insert in data
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
Start your 3 months of free trial now. Sign up and start your business flow right away
Get your business mate now