---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, PMD Scripting, Scripts]
nav: wcp_docs
parent_url: /wcp_docs/
title: >- 
  Reference: PMD Functions
layout: subsection
---

<a id="section_lyg_xbc_vdb"></a>
This reference includes all PMD functions that you can call as instance methods and/or namespace functions. The parameters listed with the titles correspond to the instance method syntax. If a PMD function doesn't have an instance method equivalent, the parameters in the title correspond to the namespace function syntax.

## <a id="section_sbj_kt5_1tb"></a>bool Functions

-   [all (expression1, expressionN)](/wcp_docs/zkm1526015606282.html)
-   [any (expression1, expressionN)](/wcp_docs/egu1526015861693.html)


## <a id="section_w15_mt5_1tb"></a>bpfTaskHelper Functions

-   [fetchTaskType (businessProcessTask)](/wcp_docs/cdb1526016092405.html)


## <a id="section_s53_st5_1tb"></a>converter Functions

-   [booleanAsInt (expression)](/wcp_docs/xti1526016483478.html)
-   [booleanAsString (expression)](/wcp_docs/bim1526016722632.html)


## <a id="section_kbl_vt5_1tb"></a>date Functions

-   [add (precision, duration)](/wcp_docs/mmb1527622820716.html)
-   [between (date2, precision)](/wcp_docs/toh1648156812613.html)
-   [after (date1, date2)](/wcp_docs/vxt1526016930739.html)
-   [checkTodaysDate (timeZone)](/wcp_docs/mxr1526017107567.html)
-   [createMonth (mm, yyyy)](/wcp_docs/wca1526017224063.html)
-   [createYear (yyyy)](/wcp_docs/xem1526017550338.html)
-   [extractValue (precision, date)](/wcp_docs/ssn1526017639979.html)
-   [format (dateFormat)](/wcp_docs/xju1526018323758.html)
-   [formatDateWithTimeZones (date, inputTimeZone, inputDateTimeFormat, outputTimeZone, outputDateTimeFormat)](/wcp_docs/bgs1527623684746.html)
-   [formatWithTimeZone (dateFormat, timeZone)](/wcp_docs/msn1526018546174.html)
-   [get (precision)](/wcp_docs/hdf1648160134603.html)
-   [getDateTimeZone (timeZone)](/wcp_docs/ipy1526018844612.html)
-   [getTodaysDate (timeZone)](/wcp_docs/hzn1526018976673.html)
-   [getTodaysDateFormatted (timeZone, dateTimeFormat)](/wcp_docs/hqm1526019092410.html)
-   [minusDays (days)](/wcp_docs/fid1648162388260.html)
-   [minusHours (hours)](/wcp_docs/zqd1648162532253.html)
-   [minusMinutes (minutes)](/wcp_docs/tbu1648162853536.html)
-   [minusMonths (months)](/wcp_docs/iex1648162019389.html)
-   [minusNanos (nanoseconds)](/wcp_docs/thc1648163109503.html)
-   [minusSeconds (seconds)](/wcp_docs/tfp1648162993353.html)
-   [minusWeeks (weeks)](/wcp_docs/luv1648162249751.html)
-   [minusYears (years)](/wcp_docs/mwq1648161720128.html)
-   [month ( )](/wcp_docs/amz1526019218750.html)
-   [now ( )](/wcp_docs/wpw1648163232016.html)
-   [now (timeZoneString)](/wcp_docs/tjr1648163406258.html)
-   [parse (dateString)](/wcp_docs/miv1648163520543.html)
-   [parse (dateString, dateFormat)](/wcp_docs/gqq1648163673091.html)
-   [parse (dateString, dateFormat, timeZoneString)](/wcp_docs/dra1648163772172.html)
-   [parseDateString (dateString)](/wcp_docs/opg1526019391075.html)
-   [parseFormattedDateString (dateString, dateFormat)](/wcp_docs/lom1526019557540.html)
-   [plusDays (days)](/wcp_docs/rnx1648164557954.html)
-   [plusHours (hours)](/wcp_docs/gpr1648164694753.html)
-   [plusMinutes (minutes)](/wcp_docs/zrz1648164798883.html)
-   [plusMonths (months)](/wcp_docs/bfc1648164357422.html)
-   [plusNanos (nanoseconds)](/wcp_docs/zei1648165281731.html)
-   [plusSeconds (seconds)](/wcp_docs/tlv1648165174877.html)
-   [plusWeeks (weeks)](/wcp_docs/zea1648164458534.html)
-   [plusYears (years)](/wcp_docs/tty1648164240112.html)
-   [timeAfter (date2)](/wcp_docs/dxv1648165386488.html)
-   [toString ( )](/wcp_docs/qbt1648165576224.html)
-   [withDayOfMonth (dayOfMonth)](/wcp_docs/qxz1648165979224.html)
-   [withDayOfYear (dayOfYear)](/wcp_docs/wjc1648166091580.html)
-   [withHour (hour)](/wcp_docs/evt1648166204257.html)
-   [withMinute (minute)](/wcp_docs/gjd1648166311760.html)
-   [withMonth (month)](/wcp_docs/jlr1648165846129.html)
-   [withNano (nanosecond)](/wcp_docs/uld1648166491720.html)
-   [withSecond (second)](/wcp_docs/lcs1648166405702.html)
-   [withYear (year)](/wcp_docs/bvz1648165750832.html)
-   [year ( )](/wcp_docs/arn1526019650439.html)


## <a id="section_d5w_t55_1tb"></a>file Functions

-   [byteCountToDisplaySize (size)](/wcp_docs/lei1526019933768.html)


## <a id="section_uzm_v55_1tb"></a>fileType Functions

-   [getFileType (fileName)](/wcp_docs/giu1526020114613.html)


## <a id="section_1"></a>graph Functions

-   [createId(id)](/wcp_docs/GUID-8e532f2e-ee77-4857-b30d-88ac39cfcd6c-enHYPHENus.html)
-   [createId(id, idType)](/wcp_docs/GUID-ef90f6ce-a2d0-4d60-bf7d-6b91d54bb0d6-enHYPHENus.html)
-   [createId(ids)](/wcp_docs/GUID-7bb45b78-6f37-44aa-9d8a-72093ca5143a-enHYPHENus.html)
-   [createId(ids, idType)](/wcp_docs/GUID-f5f1c630-b8c2-4e3d-a4f3-472024f74611-enHYPHENus.html)
-   [createIds(ids)](/wcp_docs/GUID-229569f1-7bdb-4922-8b3f-3ffa090bc5dc-enHYPHENus.html)
-   [createIds(ids, idType)](/wcp_docs/GUID-f296d3e1-8618-4729-a059-69e52c02d98b-enHYPHENus.html)


## <a id="section_ogt_w55_1tb"></a>grid Functions

-   [getSubtotal (grid, columnId)](/wcp_docs/vyq1526067179948.html)


## <a id="section_wrw_2v5_1tb"></a>json Functions

-   [asJSON (object)](/wcp_docs/yhr1526020537362.html)
-   [attribute (key, value)](/wcp_docs/kil1526252034537.html)
-   [create (attribute1, attributeN)](/wcp_docs/qmc1526020970193.html)
-   [parse (jsonString)](/wcp_docs/qky1677020837235.html)
-   [stringify (object)](/wcp_docs/oyl1677021203154.html)
-   [query (source, jsonPath)](/wcp_docs/GUID-f8bc6e28-2b28-4871-87d6-d4dbc1c33a2d-enHYPHENus.html)
-   [query (source, jsonPath, resultsAsList)](/wcp_docs/GUID-5277e55b-4f98-4a44-9da9-1b37c46b8226-enHYPHENus.html)


## <a id="section_vb3_hv5_1tb"></a>list Functions

-   [add (element)](/wcp_docs/exw1648243490339.html)
-   [add (index, element)](/wcp_docs/kts1648243892424.html)
-   [add (list, object, index)](/wcp_docs/dmw1526071026987.html)
-   [addAll (elements)](/wcp_docs/ekv1648244196510.html)
-   [addAll (index, elements)](/wcp_docs/gbf1648244370014.html)
-   [clear ( )](/wcp_docs/uyw1648244557737.html)
-   [contains (element)](/wcp_docs/tkp1526071047873.html)
-   [containsAll (elements)](/wcp_docs/epg1648244946345.html)
-   [createMapList (list, key)](/wcp_docs/twl1526071061825.html)
-   [createMapListWithKeys (list, keyList)](/wcp_docs/gxz1527623991881.html)
-   [distinct ( )](/wcp_docs/jbv1648246443155.html)
-   [emptyList ( )](/wcp_docs/gvk1526071083771.html)
-   [exclude (list, key, value)](/wcp_docs/zvx1527624370604.html)
-   [excludeEmptyAttribute (list, key)](/wcp_docs/fvh1527624308874.html)
-   [excludeMultiple (list, key, comparisonList)](/wcp_docs/quq1527625422513.html)
-   [excludeRegex (list, regexValue)](/wcp_docs/uts1527626181550.html)
-   [filter (closure)](/wcp_docs/gtb1648246589769.html)
-   [filter (closure(item, index))](/wcp_docs/GUID-4080b028-3d1c-411a-84a0-cf0b6f0c3bc3-enHYPHENus.html)
-   [filter (list, key, value)](/wcp_docs/dxm1526071133469.html)
-   [filterEmptyAttribute (list, key)](/wcp_docs/tdt1527626323484.html)
-   [filterMultiple (list, key, comparisonList)](/wcp_docs/ntw1526071151628.html)
-   [filterRegex (list, regexValue)](/wcp_docs/svr1526071166095.html)
-   [find (closure)](/wcp_docs/tbx1648246721914.html)
-   [first ( )](/wcp_docs/tuu1648247022727.html)
-   [firstNonEmpty (param1, paramN)](/wcp_docs/owq1526071183587.html)
-   [flatten (list)](/wcp_docs/vne1563834265820.html)
-   [forEach (closure)](/wcp_docs/lqd1677025193519.html)
-   [forEach (closure(item, index))](/wcp_docs/GUID-cb788a14-28ae-41e8-845a-c1d1d88b79ad-enHYPHENus.html)
-   [get (index)](/wcp_docs/pcp1648254726457.html)
-   [indexOf (element)](/wcp_docs/uji1648254866437.html)
-   [indexOf (object, list)](/wcp_docs/cvw1526071203839.html)
-   [isEmpty ( )](/wcp_docs/tya1648255032640.html)
-   [isList (object)](/wcp_docs/iup1526071220384.html)
-   [join ( )](/wcp_docs/uqu1648255128293.html)
-   [join (list1, list2)](/wcp_docs/umk1539878745216.html)
-   [join (separator)](/wcp_docs/lnc1648255239381.html)
-   [last ( )](/wcp_docs/jun1648255422125.html)
-   [lastIndexOf (element)](/wcp_docs/ato1648255490880.html)
-   [map (closure)](/wcp_docs/epn1648255616074.html)
-   [map (closure(item, index))](/wcp_docs/GUID-e6f38df7-3aa9-4044-9c85-a6ddb30d29d6-enHYPHENus.html)
-   [mapAttribute (list, key)](/wcp_docs/yqi1526071232248.html)
-   [mapBeanAttribute (listOfBeans, beanProperty)](/wcp_docs/vfe1527705975179.html)
-   [nonNull (list)](/wcp_docs/pgy1563833717081.html)
-   [reduce (closure)](/wcp_docs/bbe1648336596907.html)
-   [remove (element)](/wcp_docs/ksm1648336772411.html)
-   [removeAll (elements)](/wcp_docs/lsp1648336969400.html)
-   [retainAll (elements)](/wcp_docs/zij1648337080010.html)
-   [reverse ( )](/wcp_docs/sou1648337192122.html)
-   [set (index, element)](/wcp_docs/sfk1648337496943.html)
-   [size ( )](/wcp_docs/shk1526071244795.html)
-   [sort ( )](/wcp_docs/neo1648353529655.html)
-   [sort (closure)](/wcp_docs/tqf1648353781824.html)
-   [sort (list, key, ascendingOrder)](/wcp_docs/xsf1539816450431.html)
-   [subList (fromIndex, toIndex)](/wcp_docs/azz1648354353931.html)
-   [toJson ( )](/wcp_docs/zoe1677025628236.html)
-   [toList (value1, valueN)](/wcp_docs/itj1526071261389.html)
-   [toListIncludeNull (value1, valueN)](/wcp_docs/ifs1527626914516.html)
-   [toMap (list, key)](/wcp_docs/kdr1526071274163.html)
-   [toString ( )](/wcp_docs/rpu1648354852152.html)


## <a id="section_m3k_fw5_1tb"></a>map Functions

-   [add (key, value)](/wcp_docs/gze1648430343806.html)
-   [addAll (anotherMap)](/wcp_docs/uha1648430875206.html)
-   [clear ( )](/wcp_docs/hug1648431065566.html)
-   [containsKey (key)](/wcp_docs/qsb1648431337201.html)
-   [containsValue (value)](/wcp_docs/eub1648431476507.html)
-   [filter (closure)](/wcp_docs/agk1648431606461.html)
-   [forEach (closure)](/wcp_docs/dsc1648433187914.html)
-   [get (key)](/wcp_docs/rmr1648433427412.html)
-   [getKeys (map)](/wcp_docs/itj1527627471626.html)
-   [getObject (map, key)](/wcp_docs/ukt1526079051528.html)
-   [getValues (map)](/wcp_docs/hgk1526079065669.html)
-   [getValuesFromKeys (map, keys)](/wcp_docs/adg1527627808305.html)
-   [isEmpty ( )](/wcp_docs/kzi1648433924734.html)
-   [keys ( )](/wcp_docs/yig1648434013350.html)
-   [map (closure)](/wcp_docs/wre1648434142962.html)
-   [mapKey (closure)](/wcp_docs/hrp1648434306457.html)
-   [mapValue (closure)](/wcp_docs/kup1648434447814.html)
-   [put (key, value)](/wcp_docs/rih1648434555871.html)
-   [remove (key)](/wcp_docs/lob1648434766935.html)
-   [size ( )](/wcp_docs/pbg1648434877622.html)
-   [toJson ( )](/wcp_docs/btk1677026121168.html)
-   [toString ( )](/wcp_docs/eny1648434965734.html)
-   [values ( )](/wcp_docs/ife1648435144521.html)


## <a id="section_kvj_qw5_1tb"></a>number Functions

-   [convertNumberToInt (number)](/wcp_docs/mhh1527628238652.html)
-   [convertStringToInt (string)](/wcp_docs/xxq1527628743047.html)
-   [max (number1, numberN)](/wcp_docs/hck1676686651593.html)
-   [min (number1, numberN)](/wcp_docs/rme1676687313361.html)
-   [pow (base, exponent)](/wcp_docs/eba1676687488166.html)
-   [sqrt (number)](/wcp_docs/iuh1676693631550.html)
-   [toBigDecimal (arithmeticExpression, scale, roundingMode)](/wcp_docs/ose1527629057889.html)


## <a id="section_uwt_sw5_1tb"></a>object Functions

-   [defaultIfNull (object, default)](/wcp_docs/jic1526254149653.html)
-   [firstNonNull (object1, objectN)](/wcp_docs/pcg1526254169164.html)


## <a id="section_2"></a>regex Functions

-   [find (text, regex)](/wcp_docs/GUID-83e766ce-ed46-463c-ba04-284435f44361-enHYPHENus.html)
-   [match (text, regex)](/wcp_docs/GUID-dbcec860-b39c-49e9-8469-e6fbb9cb5f11-enHYPHENus.html)
-   [replace (text, regex, replacement)](/wcp_docs/GUID-4efa90af-84f1-4dbf-925a-1716fbb6a3f3-enHYPHENus.html)
-   [replaceOnce (text, regex, replacement)](/wcp_docs/GUID-e5be229d-ed2e-4651-a3a2-b9f61535534b-enHYPHENus.html)
-   [split (text, regex)](/wcp_docs/GUID-ae84a192-815c-40b8-8a21-5193cc27ca84-enHYPHENus.html)


## <a id="section_i4g_5w5_1tb"></a>set Functions

-   [add (element)](/wcp_docs/jsw1648167067415.html)
-   [addAll (elements)](/wcp_docs/nue1648167523425.html)
-   [clear ( )](/wcp_docs/api1648167731351.html)
-   [contains (element)](/wcp_docs/kzx1648167879861.html)
-   [containsAll (elements)](/wcp_docs/onj1648168046709.html)
-   [filter (closure)](/wcp_docs/bnc1648168252635.html)
-   [find (closure)](/wcp_docs/vcl1648168424905.html)
-   [forEach (closure)](/wcp_docs/onf1677026247704.html)
-   [isEmpty ( )](/wcp_docs/pge1648168910456.html)
-   [join ( )](/wcp_docs/weo1648169009159.html)
-   [join (separator)](/wcp_docs/oav1648169238701.html)
-   [map (closure)](/wcp_docs/fct1648169891061.html)
-   [reduce (closure)](/wcp_docs/ixe1648170071189.html)
-   [remove (element)](/wcp_docs/wvv1648170527929.html)
-   [size ( )](/wcp_docs/ifv1648170744603.html)
-   [toJson ( )](/wcp_docs/gls1677026335638.html)
-   [toString ( )](/wcp_docs/tzt1648170886204.html)


## <a id="section_mq1_cx5_1tb"></a>string Functions

-   [abbreviate (maxWidth)](/wcp_docs/ptl1648436406939.html)
-   [capitalize ( )](/wcp_docs/rdh1648436774921.html)
-   [concat (string1, string2)](/wcp_docs/vev1526275371535.html)
-   [contains (searchString)](/wcp_docs/nmz1648436947998.html)
-   [contains (string, substring)](/wcp_docs/trf1526275389283.html)
-   [containsIgnoreCase (searchString)](/wcp_docs/ool1648437158925.html)
-   [defaultIfBlank (defaultString)](/wcp_docs/puj1648437354255.html)
-   [defaultIfEmpty (defaultString)](/wcp_docs/byj1648437673671.html)
-   [endsWith (suffix)](/wcp_docs/rrx1648437817062.html)
-   [endsWithIgnoreCase (suffix)](/wcp_docs/iiy1648438005518.html)
-   [formatListToString (separator, list)](/wcp_docs/tro1526275404703.html)
-   [formatMessage (messageWithParameters, orderedParameters)](/wcp_docs/gxi1526275416984.html)
-   [fuzzyMatchIndex (list, comparisonValue)](/wcp_docs/dka1526275484421.html)
-   [fuzzyMatchString (list, comparisonValue)](/wcp_docs/ikf1526275498195.html)
-   [fuzzyScore (query)](/wcp_docs/fet1648438183437.html)
-   [indexOf (searchString)](/wcp_docs/ovo1648438791074.html)
-   [indexOf (substring, startIndex)](/wcp_docs/mdr1527657472793.html)
-   [isAllLowerCase ( )](/wcp_docs/tey1648439402127.html)
-   [isAllUpperCase ( )](/wcp_docs/yxc1648439539230.html)
-   [isBlank ( )](/wcp_docs/xnc1648439592535.html)
-   [isNumber ( )](/wcp_docs/wbm1648439697079.html)
-   [isNumeric ( )](/wcp_docs/pmg1648439769700.html)
-   [isString (value)](/wcp_docs/wsv1526275523762.html)
-   [join (array, separator)](/wcp_docs/tzs1648439945662.html)
-   [join (string1, stringN)](/wcp_docs/iit1526275537190.html)
-   [lastIndexOf (searchString)](/wcp_docs/fop1527657753658.html)
-   [lastIndexOf (subString, fromIndex)](/wcp_docs/ifz1648440636768.html)
-   [leftPad (size)](/wcp_docs/awr1648440959101.html)
-   [leftPad (size, padCharacter)](/wcp_docs/ltp1648441349246.html)
-   [length ( )](/wcp_docs/ajx1527657932364.html)
-   [lowerCase ( )](/wcp_docs/bos1527658084177.html)
-   [lowerCase (locale)](/wcp_docs/kjz1648442133960.html)
-   [pathEncode ( )](/wcp_docs/qun1568154605658.html)
-   [remove (subString)](/wcp_docs/zhy1648487052893.html)
-   [removeEnd (subString)](/wcp_docs/esc1648487477595.html)
-   [removeEndIgnoreCase (subString)](/wcp_docs/ewy1648487936418.html)
-   [removeStart (subString)](/wcp_docs/xku1648488158404.html)
-   [removeStartIgnoreCase (subString)](/wcp_docs/muf1648488363863.html)
-   [replace (searchString, replacement)](/wcp_docs/lss1648488536533.html)
-   [replaceIgnoreCase (searchString, replacement)](/wcp_docs/dzs1648489582867.html)
-   [replaceOnce (searchString, replacement)](/wcp_docs/ncx1648489898945.html)
-   [replaceOnceIgnoreCase (searchString, replacement)](/wcp_docs/rtt1648490098697.html)
-   [replaceSubstring (string, origSubstring, newSubstring)](/wcp_docs/hmr1526275554874.html)
-   [reverse ( )](/wcp_docs/uym1648490327014.html)
-   [rightPad (size)](/wcp_docs/ytb1648490480257.html)
-   [rightPad (size, padCharacter)](/wcp_docs/bpa1648490851230.html)
-   [size ( )](/wcp_docs/ghv1648491057615.html)
-   [split (separatorChars)](/wcp_docs/nrm1527658169065.html)
-   [splitByRegex (regex)](/wcp_docs/vmr1676494770348.html)
-   [startsWith (prefix)](/wcp_docs/evn1648491781591.html)
-   [startsWith (string, substring, startIndex)](/wcp_docs/vpm1527658417802.html)
-   [startsWithIgnoreCase (prefix)](/wcp_docs/qik1648492082494.html)
-   [stripPrefix (prefix)](/wcp_docs/gqr1648491223911.html)
-   [stripSuffix (suffix)](/wcp_docs/zdr1648492655079.html)
-   [substring (startIndex)](/wcp_docs/ykl1648492918729.html)
-   [substring (startIndex, endIndex)](/wcp_docs/lgt1527658833381.html)
-   [substringAfter (separator)](/wcp_docs/jsi1648493419880.html)
-   [substringAfterLast (separator)](/wcp_docs/ira1526275583239.html)
-   [substringBefore (separator)](/wcp_docs/cni1648494032049.html)
-   [substringBeforeLast (separator)](/wcp_docs/acf1648494273119.html)
-   [toDecimal ( )](/wcp_docs/xss1676683486967.html)
-   [toDecimal (scale, mode)](/wcp_docs/bbe1676684254210.html)
-   [toInt ( )](/wcp_docs/coy1676495567463.html)
-   [toString ( )](/wcp_docs/xup1526275608547.html)
-   [trim ( )](/wcp_docs/yix1527659140649.html)
-   [trimToEmpty ( )](/wcp_docs/klk1648496522055.html)
-   [truncate (maxWidth)](/wcp_docs/djm1648500551368.html)
-   [truncate (offset, maxWidth)](/wcp_docs/ugj1648500727146.html)
-   [uncapitalize ( )](/wcp_docs/olm1648501052901.html)
-   [upperCase ( )](/wcp_docs/smu1526275622911.html)
-   [upperCase (locale)](/wcp_docs/rsx1648501221180.html)
-   [urlDecode ( )](/wcp_docs/jpj1527659318677.html)
-   [urlEncode ( )](/wcp_docs/fhz1526275637049.html)
-   [uuid ( )](/wcp_docs/whw1676494292062.html)


## <a id="section_cps_zy5_1tb"></a>validate Functions

-   [match (regex, comparisonString)](/wcp_docs/sce1526254547753.html)


### Related Information

[Concept: PMD Functions](/wcp_docs/zoh1530569609590.html)

[Concept: PMD Scripting](/wcp_docs/oli1581402304020.html)

[PMD Scripting](/wcp_docs/jab1582081565510.html)

[App Catalog: PMD Scripting](/app-catalog/pmdScripting)

