It is possible to set a dynamic values as default value using Javascript.
The most common used is setting time or date
Select <> instead of the calendar and inset your oneline code.
Samles for that is setting time/date
Set time/date
<date> ı <offset>
now() | dateMinus({days: 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
Dynamicly use information from the user creating an record. The same values can be utilised in the update metode, 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
How a Developer can work with Workflows
currentRecord
user
organisation
variables
It can also be triggered on time reaccouring with a user defined interval. if special time based definitions is required, that can be done using a cron job.
If you have dependent async calls (await) then don’t run them in the same activity. to make sure that the workflow handle the syncronization.
like, lookup in a list, based on the result update another record
If reference values are blank in the workflow log, then workflow user of that list might not have access to the referred list.
List
Record
How a Developer can utilise the Rest API (outbound)
How a Developer can utilise the Rest API (inbound)
Security is based on roles setting permissions,
Groups issue assigned roles
Users are members of groups
Users and groups are controlled by the tenant admin.
Tenant admin, import, create, maintain users and groups.
List is controlled by List admins
List admins, when creating a list they become list admin for that list via a list admin group, there can be added additional members to that group, giving them the owner permissions.
The list owner can configure a list, the related form, workflows, roles & permissions and settings,
The list owners assigned the roles they create to groups, addressing relevant users.
A role can hold the following permissions
Can Create,
Having this permission you can create a record on the related list. If you have to se the submitted record then thee group needs to have that permission as well
Can Read
Having this permission you can read records in a list, the permission can be given with a filter reducing the amount of records in list that is readable.
a filter could be created by you or assigned to you.
Can Update
Having this permission you can update records in a list, the permission can be given with a filter reducing the amount of records in list that is readable.
To work properly you need to have en read permission aswell
Can Delete
Having this permission you can archive records in a list. Normally this permission is given to a superuser of the process or a supervisor, the permission always comes with the owner.
Having this permission also gives the user permission to “unarchive” a record.
Can Force Delete
Having this permission you can delete a record. A forced delete record can’t be restored.
See KPI
Having this permission you can se and use KPIs related to the list. Having this permission gives you the option to have the KPI on your homescreen.
is Owner
Having this permission gives you full control over the list,
Example on how to use:
I many processes there are something like a user/rerquester/ customer to the process.
they would in many cases have the option to create, read and update own records in the primary list, and read records in supporting lists.
I must processes there are predefined groups that can be fulllfiller to the process, you can normally create, read, update all records in the lists related to the process
I some cases then can do the archiving, in other cases the archiving is done by managers of the process, having process managers the are often responsible for maintaining data supporting the process, when that is in additional lists.
Sampe setup:
Start your 3 months of free trial now.Sign up and start your business flow right away
Get your business mate now