Action - Transform
-
OSS/BSS Answers
Access Control Admin Audit B3Network Master Account Channel App Contract App Customer App Discount App Edge Server File Management Finance App Invoice App Number Management Payment Portal Settings Price List Product App Release V2 SMS Gateway Supplier App Support Center Support Hub Business Hub Sales Hub
- App Model - Organization Management
- App Model - Communication Apps Answers
- License Model - Organization Management
-
License Model - CPaaS Solution Answers
Phone System - Admin Guide Phone System - End-user Guide Mobile App Desktop App Web Phone Auto Attendant - Admin Guide Developer Hub - Admin Guide Microsoft Teams Operator Connect - Admin Guide Microsoft Teams Direct Routing - Admin Guide Contact Center - Supervisor Guide Contact Center - Agent Guide Omni-Channel SIP Trunk CPaaS - SIP Trunk Power SIP Trunk CPaaS Fax Contact Dashboard Campaign File Explorer
- Telcoflow
- Integrations Answers
- Updated Regulations
- Ideas Portal
Table of Contents
You can use the Transform action to pivot your data into a new index. By transforming and summarizing your data, it becomes possible to visualize and analyze it in alternative ways.
Here is the list of available transform actions:
1. Generate Random UUID
This action is used for generating a random UUID to use as input for the later actions.
In order to generate a random UUID, please follow the steps below:
- Click the (+) icon, choose Transform action
- In the Transform function section, select Generate Random UUID
- Add
2. Get Current Timestamp
This action is used for getting the current timestamp when this action is executed.
In order to get the current timestamp, please follow the steps below:
- Click the (+) icon, choose Transform action
- In the Transform function section, select Get Current Timestamp
- Add
3. Format Datetime
This action is used for defining how date and time values should be read and written from the previous timestamp output.
-
REQUIRED INPUTS
- Timestamp
-
OUTPUT
- Formatted Datetime (String)
In order to format the date & time, please follow the steps below:
- Click the (+) icon, choose Transform action
- At the Transform function section, select Format Datetime
- Input the parameters:
- Timestamp: Output from the previous actions
- Format: (e.g yyyy-MM-dd'T'HH:mm:ss)
- Time zone: (e.g +08:00)
- Add
4. Format Number to E164
This action is used for formatting a phone number to E164 standard (eg. +6591234567) in case the caller number is not in E164 format.
-
REQUIRED INPUTS
- Phone Number to Format
- Default Country
-
OUTPUT
- Formatted Number
In order to format the number to E164, please follow the steps below:
- Click the (+) icon, choose Transform action
- At the Transform function section, select Format Number to E164
- Input the parameters:
- Phone number to Format: Output from the previous actions (e.g Caller ID)
- Default Country: (e.g SG - Singapore)
- Add
5. Get Country Code
This action is used for getting the phone number's country code.
-
REQUIRED INPUTS
- Phone Number: Phone number in E.164 format (eg. +6591234567)
-
OUTPUT
- Country Code: Country code of +6581234567 is "65"
In order to get phone number properties, please follow the steps below:
- Click the (+) icon, choose Transform action
- At the Transform function section, select Get Country Code
- Input the parameters:
- E164 Phone Number: Output of the previous actions
- Add
6. Get Region Code
This action is used for getting the phone number's region code.
-
REQUIRED INPUTS
- Phone Number: Phone number in E.164 format (eg. +6591234567)
-
OUTPUT
- Region Code: Region code of +6581234567 is "SG"
In order to get phone number properties, please follow the steps below:
- Click the (+) icon, choose Transform action
- At the Transform function section, select Get Region Code
- Input the parameters:
- E164 Phone Number: Output of the previous actions
- Add
7. Get Number Type
This action is used for getting the phone number type.
-
REQUIRED INPUTS
- Phone Number: Phone number in E.164 format (eg. +6591234567)
-
OUTPUT
- Number Type: Fixed line, mobile, toll-free, etc
In order to get phone number properties, please follow the steps below:
- Click the (+) icon, choose Transform action
- At the Transform function section, select Get Number Type
- Input the parameters:
- E164 Phone Number: Output of the previous actions
- Add
8. Spell
This action is used to make a text compatible with TTS spelling. This action will usually be added before playing a message to confirm the caller's number. Otherwise, the system will spell the number in units.
-
REQUIRED INPUTS
- Text to spell
-
OUTPUT
- Spelled Text
In order to configure the spell action, please follow the steps below:
- Click the (+) icon, choose Transform action
- At the Transform function section, select Spell
- Input the parameters:
- Text to Spell: Type your text or use the output of the previous actions
- Add
9. String Length
This action is used for calculating the length of the string of text or numbers to check the number of characters it contains.
-
REQUIRED INPUTS
- String to get Length
-
OUTPUT
- Number of characters (String)
In order to get the string length, please follow the steps below:
- Click the (+) icon, choose Transform action
- In the Transform function section, select String Length
- Input the parameters:
- String to get Length
- Add
10. Check if String Matches A Regex Pattern
This action is used for checking if a number is of a certain pattern (frequently used for checking whether a callback number is valid or not).
-
REQUIRED INPUTS
- String to check
- Regex
-
OUTPUT
- True/False (Boolean)
In order to check if the string matches a regex pattern, please follow the steps below:
- Click the (+) icon, choose Transform action
- In the Transform function section, select Check if String Matches A Regex Pattern
- Input the parameters:
- String To Check
- Regex
- Add
11. Replace String
This action is used for replacing a section of a text, used when wanting to personalize a message (sample: Original String: Hello {name}, replace String {name} with Tom => Hello Tom)
-
REQUIRED INPUTS
- Original String
- Old Term
- New Term
-
OUTPUT
- The new string
In order to replace a string, please follow the steps below:
- Click the (+) icon, choose Transform action
- In the Transform function section, select Replace String
- Input the parameters:
- Original String
- Old Term
- New Term
- Add
12. Add Two Numbers
The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list.
-
REQUIRED INPUTS
- First Number
- Second Number
-
OUTPUT
- The sum of the first and second number
In order to configure this, please follow the steps below:
- Click the (+) icon, choose Transform action
- In the Transform function section, select Add Two Numbers
- Input the parameters:
- First Number
- Second Number
- Add