You must have the following access to use the functionality in this article:
Adobe Workfront plan* | Pro or higher |
Adobe Workfront license* | Plan, Work |
Adobe Workfront Fusion license** |
Current license requirement: No Workfront Fusion license requirement. Or Legacy license requirement: Workfront Fusion for Work Automation and Integration |
Product |
Current product requirement: If you have the Select or Prime Adobe Workfront Plan, your organization must purchase Adobe Workfront Fusion as well as Adobe Workfront to use functionality described in this article. Workfront Fusion is included in the Ultimate Workfront plan. Or Legacy product requirement: Your organization must purchase Adobe Workfront Fusion as well as Adobe Workfront to use functionality described in this article. |
To find out what plan, license type, or access you have, contact your Workfront administrator.
For information on Adobe Workfront Fusion licenses, see Adobe Workfront Fusion licenses.
Removes all non-ascii characters from a text string.
Examples:
ascii(
Wěošrčkřfžrýoáníté
)
Returns: Workfront
ascii(
ěščřž
;
true
)
Returns: escrz
Transforms text to base64.
Example:
base64( workfront )
Returns: d29ya2Zyb250==
Converts the first character in a text string to uppercase.
Example:
capitalize( workfront )
Returns: Workfront
Verifies whether text contains the search string.
Examples:
contains( Hello World ; Hello )
Returns: true
contains( Hello World ; Bye )
Returns: false
Decodes special characters in a URL to text.
Example:
decodeURL( Automate%20your%20workflow )
Returns: Automate your workflow
Encodes special characters in some text to a valid URL address.
Escapes all HTML tags in text.
Example:
escapeHTML( <b>Hello</b> )
Returns: <b>Hello</b>
Escapes all Markdown tags in text.
Example:
escapeMarkdown( # Header )
Returns: # Header
Returns the position of the first occurrence of a specified value in a string. This method returns ‘-1’ if the value that is searched for is not there. The start value indicates where in the string the search should begin.
Examples:
indexOf( Workfront ; o )
Returns: 1
indexOf( Workfront ; x )
Returns: -1
indexOf( Workfront ; o ; 3 )
Returns: 6
Returns the length of text string (number of characters) or binary buffer (buffer size in bytes).
Example:
length( hello )
Returns: 5
Converts all alphabetical characters in a text string to lowercase.
Example:
lower( Hello )
Returns: hello
Calculates the md5 hash of a string.
Example:
md5( Workfront )
Returns: 1448bbbeaa7a9b8091d426999f1f666b
Replaces the search string with the new string.
Example:
replace( Hello World ; Hello ; Hi )
Returns: Hi World
Regular expressions (enclosed in /.../
) can be used as search string with a combination of flags (such as g
, i
, m
) appended:
Example:
All of these numbers X X X X are replaced with X
The replacement string can include the following special replacement patterns:
$&
Inserts the matched substring.$n
Where n is a positive integer less than 100, inserts the nth parenthesized submatch string. This is 1-indexed.Examples:
Returns: Phone number +420777111222
Returns: Phone number: +420777111222
Do not use named capture groups such as / is (?<number>\d+)/
in the replacement string argument. Doing so results in an error.
For more information on regular expressions, see Text parser.
Calculates the sha1 hash of a string. If the key argument is specified, sha1 HMAC hash is returned instead. Supported encodings: “hex” (default), “base64” or “latin1.”
Example:
sha1( workfront )
Returns: b2b30b8ae1f9e5b40fbb0696eaabdbfd8d0c087f
Calculates the sha256 hash of a string. If the key argument is specified, sha256 HMAC hash is returned instead. Supported encodings: “hex” (default), “base64” or “latin1”.>
Example:
sha256( workfront )
Returns: ed3d7397eec7b94453035b67ba4468c883ee3bedeb57137f7371f2e0cf5e2bbc
Calculates the sha512 hash of a string. If the key argument is specified, sha512 HMAC hash is returned instead.
Supported encodings:
Supported key encodings:
When using “binary” key encoding, a key must be a buffer, not a string.
Example:
sha512(workfront)
Returns: 789ae41b9456357e4f27c6a09956a767abbb8d80b206003ffdd1e94dbc687cd119b85e1e19db58bb44b234493af35fd431639c0345aadf2cf7ec26e9f4a7fb19
Splits a string into an array of strings by separating the string into substrings.
Example:
split( John, George, Paul ; , )
Capitalizes the first letter of every word and lower cases all other letters.
Example:
startcase( hello WORLD )
Returns: Hello World
Removes all HTML tags from text.
Example:
stripHTML( <b>Hello</b> )
Returns: Hello
Returns a portion of a text string between the “start” position and “end” position.
Examples:
substring( Hello ; 0 ; 3)
Returns: Hel
substring( Hello ; 1 ; 3 )
Returns: el
Converts any value to binary data.
You can also specify encoding as a second argument to apply binary conversions from hex or base64 to binary data.
Examples:
toBinary( Workfront )
Returns: 57 6f 72 6b 66 72 6f 6e 74
toBinary( V29ya2Zyb250 ; base64 )
Returns: 57 6f 72 6b 66 72 6f 6e 74
Converts any value to a string.
Removes space characters at the start or end of the text.
Converts all alphabetical characters in a text string to uppercase.
Example:
upper( Hello )
Returns: HELLO