title: Transform
Transform is an extension on Awell's Marketplace with utility functions that allows you to transform data from one type to another. These functions are particularly useful e.g. when system A works with IDs that are numbers but system B works with IDs that are strings.
Transform or parse a number to text (string).
Transform or parse text (string) to a number. Will return NaN if the input data is not an actual number.
Transform or parse a date to a unix timestamp.
Transform or parse a unix timestamp to a date.
Transform or parse a number to a string using a dictionary. Useful for when you have numeric data points but want to map them to strings based on a dictionary. When the action is called with a number that does not have a corresponding mapping in the provided dictionary, it simply returns the number itself as a string.
The dictionary should be structured in JSON format with string keys mapping to string values. Each key represents a number (as a string), and each value is the corresponding text representation.
Example:
{
"0": "Male",
"1": "Female",
"2": "Not known",
// ... other number mappings ...
}
Generate a dynamic URL based on a URL template with placeholder and a data point value.
urlTemplate https://your-url.com/{{placeholder}}
value hello-world
outcome https://your-url.com/hello-world
Converts a measurement in feet and inches to just inches.