The Character functions action provides a way to manipulate and parse text.

In each function, there are parameters to specify the source of the text. Since the text source can be stored in a variety of different places within Method, a dropdown is provided to locate where the text can be retrieved. This can range from text being manually typed in, to text in action results or controls on screen.

The result of the Character function can be stored in an action result or a control on screen.

In this article, we will cover the following functions:


Find in Json

Function Returns: The value within a JSON given a key.

JSON (JavaScript Object Notation) is a format for structuring data. It is used to transmit data between a server and a web application and normally returned from a Call Web Service Action. 

▶  JSON text: the JSON text to parse

▶  Find value for key: the key to reference the value

▶  Store Result in: where to store the value referenced by the key


Find in Text

Function Returns: The numerical position of some text within a larger body of text. 

▶  Find the: select either the First or the Last occurrence of the text you want to find.

▶  Occurrence of: the text you want to find.

▶  Inside the text: the body of text to search through.

▶  Starting at character: where in the body of text to start searching through.

▶  Store Result in: where to store the position of the found text.


Is Email Address

Function Returns: True or False depending on the result.

Is this an email address? : provide an email or a comma-separated list of emails.

Store Result in: where to store the true or false result.


Is Date / Empty / Numeric

Function Returns: True or False depending on the result.

▶  Is this a date/empty/a number? : the text you want to test.

▶  Store Result in: where to store the true or false result.


Join

Function Returns: Text created from the joining of provided texts.

▶  Join this: the first piece of text you wish to join

▶  With this: the second piece of text you wish to join

⊕ Add another join: bring up another field to join more text

▶  Separate joins with: in between the joined texts, you can insert

  • custom text

  • Comma (,)

  • New Line

  • No Separator

  • Space

  • Pipe (|)

▶  Store Result in: where to store the final text result


Left

Function Returns: Extracted text from a given text.

▶  Extract text from: the text to extract from.

▶  Search using Position | Return this many characters starting from the left:
Return stated number of characters starting from the beginning of the text.
Example: If the original text is "abcde" and 2 characters are set to be returned, then the result is "ab".

▶  Search using Text | Return all characters before this:
Return all characters before stated search text.
Example: If the original text is "abcde" and we set the text to "de", then the result is "abc".

▶  Store Result in: where to store the final text result.

Right

Function Returns: Extracted text from a given text.

▶  Extract text from: the text to extract from.

 Search using Position | Return this many characters starting from the right:
Return stated number of characters starting from the end of the text.
Example: If the original text is "abcde" and 2 characters are set to be returned, then the result is "de".

▶  Search using Text | Return all characters after this:
Return all characters before stated search text.
Example: If the original text is "abcde" and we set the text to "bc", then the result is "de".

▶  Store Result in: where to store the final text result.


Middle

Function Returns: Extracted text from a given text

▶  Extract text from: the text to extract from.

▶  Search using Position: extract text based on a numeric position. 

  • Return this number of characters: How many characters to return.

  • Starting at position: numerical position to start.
    Example: If the original text is "abcde", and we want to 2 characters starting at the 3rd position, then the result would be "cd".

Search using Text: return text between two text values.

  • Return characters between this: Start extraction after this text.

  • And this: Complete extraction before this text.
    Example: If the original text is "abcde", and we want to return characters between "ab" and "de", then the result would be "c".

Store Result in: where to store the final text result.


Length

Function Returns: The number of characters in a given text.

▶  Return the number of characters in: the text to count characters.

▶  Store Result in: where to store the final count.


Replace

Function Returns: the text with replacements specified.

▶  Within text: the text to update with replacements.

 Replace this: the text to search for.

 With this: the replacement text.

 Store Result in: where to store the final text result with replacements.


Replace Merge Fields

Function Returns: the text with merge fields replaced

A merge field allows you to pull in field values from a table to be put into text, often used for email templates. For example, here is some text with a merge field:

Dear Contacts.Name,
It was good to meet you.

The merge field is Contacts.Name. The first part before the period specifies the table, "Contacts" and the second part refers to the field in the table "Name".

Given a Record ID to specify a particular record, the merge field in the above text will be replaced with the value taken from the Name field of that record in the Contacts table.

 Using This Text: the text with the merge fields.

 Merge Data from This Table: the table to retrieve values from.

 Using this RecordID: the record id of the record to retrieve values from.

 Store Result in: where to store the final text result with replacements.


To Upper/Lower/Title Case

Function Returns: the text changed to the specified case

The three functions mentioned are:

 Lower case: all text is converted so there are no capital letters.

 Upper case: all text is converted to capital letters.

 Title case: each word is capitalized.

 Convert this to lower/upper/title case: the text to convert.

 Store Result in: where to store the final text result.

Did this answer your question?