Skip to content

Plan Icon Ultimate

Web Function#

A Web Function is a way to provide custom functionality to the Mobile2b Flow System through an HTTP resource.

With Web Functions, you can extend the built-in Flow capabilities with any custom logic you can come up with.

To get started with implementing your own Web Functions, feel free to use the open-source Web Function SDK for Java.

Mobile2b offers some Web Functions that can be used using the Mobile2b REST API.

Web Function Description URL
Gron Generation Converts date/time inputs into a Cron string {API_BASE}/functions/cron-generation
Date Time Concatenation Concat a date and a time to a timestamp {API_BASE}/functions/date-time-concatenation
RTF Remover Removes the Rich Text Format (RTF) from an input string {API_BASE}/functions/rtf-remover
String Hashing Creates a hash of a text based on a defined algorithm. Supported algorithms are BCrypt, SHA256, and SHA512 {API_BASE}/functions/string-hashing
String Trimming Removes control characters such as whitespaces from both ends of a text {API_BASE}/functions/string-trimming
User/Group Evaluation Determines whether a selection is a user or a group of users {API_BASE}/functions/user-group-evaluation
String splitter Divides the input text based on the specified character and extracts a part at position {X} (X counts from 0). {API_BASE}/functions/string-splitter

Additiomal Details for Web Functions:#

✨ String Splitter – INDIVIDUAL Mode ✨#

The String splitter function now supports a new mode for splitting text into individual characters.

  • INDIVIDUAL Mode:
    When selecting INDIVIDUAL for the Split by character property, the input text is split into single characters. The function then extracts the character at the specified index position (with the count starting at 0).

Example:
For a Text Input of "2025": - Position 0: 2 - Position 1: 0 - Position 2: 2 - Position 3: 5

Settings:

  • Integration*: System integration of type Web service
  • Path*: the path to service, for example /issues
  • Headers: HTTP headers, for example "My-Custom-Header: some_value"

See Flow Designer