Environment variables

Show all system variables

Show environment variables

now
locale
timezone
currency
currentUser
ultradocOwner

Include the environment variables building block in your Ultradox flow to make them available in the auto-completion in subsequent building blocks and within the Ultradox Template Editor.

The current values of the environment variables will also be displayed in the console when this block gets executed.

Use cases

  • Show the current date/time in a generated document
  • Send notifications to the owner of the Ultradox file
  • Send an email to the current user of your app
  • Search for files matching the locale (language) of the current user

Configuration

No configuration required

Useful combinations

Find documents matching the user's language

Show environment variables

locale

Find file Doc_${locale}.pdf

locale
fileId

Download file

fileId
file

Email file

file
EMAIL

Access the environment variables by including the Environment variables building block in your Ultradox file.

Use the locale variable in the Find file building block to look-up files in the users' language.

Download the file that was found from your Google Drive and attach it to an email.

Copy App

Set environment variables to change the default currency, language or timezone

Load form

EUR
currency
GMT+1
timezone
amount

Show environment variables

currency
timezone

${amount;currency} ${now;datetime}

amount
100
currency
timezone
23:21:00 GMT+1

Use a Form building block to define default values for currency and timezone.

Using those environment variables in your flow you the original system values are overwritten with the specified default values. You can thereby manually set the language, currency, timezone in the further processing of your Ultradox flow.

When using the currency or time formats without explicitly specifying the currency code or timezone in the the Log statement building block, the new default currency or timezone will be used.

Copy App

Learn more

The following environment variables will be available:

Variable

Example Output

${now}

Mon Apr 25 09:53:30 UTC 2016

${locale}

de_CH

${timezone}

UTC

${currency}

USD

${ultradocOwner}

[email protected]

${currentUser.email}

[email protected]

${currentUser.givenName}

Joe

${currentUser.familyName}

Plumber

${currentUser.displayName}

Joe Plumber

${currentUser.domain}

acme.org

${currentUser.gender}

male

${currentUser.photo}

https://joephoto.png

Questions and Feedback

If you have any comments on this page, feel free to add suggestions right to the Google document that we are using to create this site.

If you are not yet member of the Ultradox community on Google+, please join now to get updates from our end or to provide feedback, bug reports or discuss with other users.

Last Updated: 10/26/20