14.1. Built-in Functions

Follow

The full list of functions available to populate Target Metadata fields.

 

14.1.1.  String Functions

 

Function Name Parameters Description

ConcateWithSeparator

Separator, stringOne, stringTwo

This function allows you to combine two different strings with your separator.

Concate stringOne, stringTwo This function will join two strings.
StringContains

stringToCheck,

orgString

This function will check one string contains other supplied string or not. It will return value as true or false.
ReplaceString orgString, wantToReplace, replaceString This function will replace sting.
SubstringByStartPosition orgString, startPosition This function will return sting from your supplied position.
SubstringByPostionAndLength orgString, startPosition, length This function will return sting from your supplied position and length.
ToUpper Name Changing text case to upper
ToLower Name Changing text case to lower
Compare stringOne, stringTwo

Comparing two string values

 

14.1.2.  Math Functions

Function Name Parameters Description

SUM

stringOne, stringTwo

This function will return sum of given two numbers.

Round

Value, RoundUpto

Returning a decimal value to the nearest integral value

Absolute

Value

Returning the absolute value of a Decimal number

Power

Value, PowerUpto

Returning a specified number raised to the specified power

 

14.1.3.  Date Functions

Function Name Parameters Description

Now ()

 

This function will return current datetime value.

Get-Day

Date

This function will return day value from given date.

Get-Month

Date

This function will return month value from given date.

Get-Year

Date

This function will return year value from given date.

Get-Time

Date

This function will return time value from given date.

Get-DateFormat[yyyy-MM-dd]

Date

This function will return given date in yyyy-MM-dd format.

Get-DateFormat[dd-MM-yyyy]

Date

This function will return given date in dd-MM-yyyy format.

 

14.1.4.  Misc Functions

Function Name Parameters Description

GetMappedUser

srcMetaValue

This function will give target mapped for given source user based on user mapping.

Substitute_Invalid_Characters

inputString

This function will substitute invalid characters in given input string that are not supported by target system.

GetTargetTaxonomy

sourceTaxonomy

This function will give target taxonomy value for given source taxonomy value.

Get-Newname

Name, Ext

This function will return a new name after combining name and extension of file.

Get-PathSegment

Url, SegmentNumber

This function will return path segment from given Url.

GetTargetContentItemIdBySourceUri

srcMetaValue

This function will return target content item id based on source item Uri.

 

14.1.5.  OCR Functions

Function Name Parameters Description

Get-OCRText

srcMetaValue

This function will read text field from Image file by rendering text pattern.

Get-OCRDateField

srcMetaValue

This function read date field from Image by rendering through date pattern.

Get-OCRWordField

srcMetaValue

This function will return specific word from string by rendering image

Get-OCRSpaceDelimitedField

srcMetaValue

This function will return field which is space separated with field value by rendering image

Get-OCRTerminatedField

srcMetaValue

 

Get-OCRNumberField

srcMetaValue

 

Get-OCRFourColumnNumber

srcMetaValue

This function will return four column values separated ‘/’.

Get-OCRMonthYear

srcMetaValue

This function will return Month year value from Date field.

Get-OCRYear

srcMetaValue

This function will return Year value from Date field.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments