Skyone
English
English
  • Home
  • Skyone Platform
    • Overview
    • Access and Registration
      • Password recovery for the platform
    • Settings and Preferences
      • My Profile
      • User Management
        • How to invite a user to the platform?
        • Options for User Management
        • Types of User Permissions
      • Invitations
      • My Company
      • Support Case Configuration
      • Companies Management
      • Billing
      • Settings
      • Security
      • Feedback
      • Logs
      • Cancellation
      • Partner-Clients
        • My Clients
        • My Partner
    • Notification
    • Health: Platform status check
    • Support Cases
      • How to track and respond to support cases?
      • Guide for opening ABO Tickets
  • Cloud Computer
    • Overview
    • Autosky
      • Login and Password Registration
        • Password RecoveryPassword Registration
      • Profile and Preferences
      • Skyone Autosky Platform
        • Dashboard
        • Accounts
          • Servers
            • Server Options
        • Environments
          • Micro environment
            • Micro environment instance
            • Micro environment servers
          • Scaling environment
            • Scaling environment instances
            • Scaling environment servers
          • Other features of the environments
        • Clients
          • Edit and Clone
          • Users
          • Applications
          • Sessions
          • Manage Access Restrictions
          • Maintenance
            • Maintenance history
        • Users
    • Cloud Server
      • Cloud Server Options
      • Backup Audit
  • Studio
    • Overview
      • Create an account
      • Recover Password
      • Quick Platform Guide
      • How to test the platform for free
      • Workspace
        • Creating a new Workspace
        • Find a Workspace
        • Sending an invitation to a Workspace
        • Editing a Workspace
      • Organizations
        • Creating an Organization
        • Organization Overview
        • Organization Management
        • Organization Monitoring
      • Settings and Preferences
        • Profile
        • Notifications
        • Usage and Billing
        • Users and Permissions
    • Integrations
      • Integration Management
        • Create integration
        • Import Integration
        • Edit Integration
        • Integration Options
        • Flows of this integration
      • Flows
        • Flow management
          • Creating a flow
          • Flow options
          • Flow Canva: configuring and editing the flow
            • Flow Canva: overview
            • Exception Handler
              • Exception Handler - Configuration
              • Exception Handler - Cases
            • Multicontext Flows
              • Example: Multicontext with an API Gateway
              • Example: Multicontext with a Time Trigger
            • Flow Settings
        • Triggers of a flow
          • API Gateway Triggers: Adding and Setting
          • AS2 Triggers: Adding and Setting
          • Queue Triggers: Adding and Setting
          • Flow Triggers: Adding and Setting
          • Time Triggers: Adding and Setting
          • Webhook Triggers: Adding and Setting
        • Tool Modules
          • AS2 Module
          • CSV Module
          • Data Transform Module
          • Data Balancer Module
          • EDI Module
          • Flow Call Module
          • IF Module
          • JavaScript Module
          • Log Module
          • Loop Do While Module
          • Loop For Module
          • Return Module
          • XML Module
          • Other Tool Modules
        • Module Header
        • Connecting components of a flow
        • Editing triggers and modules
        • Data Operations
          • Object Handling
            • Practical example: Handling variables
          • SMOP (Small Operations)
          • Parameterization rules
    • Modules
      • Module management
        • Creating a Module
        • Importing a Module
          • IAC Files - Integration as Code
        • Editing a module
        • Module Options
      • Settings and Operations
        • Module settings
          • Connectivity: Database
          • Connectivity: Email
          • Connectivity: REST
          • Connectivity: SOAP
          • Connectivity: File
          • Connectivity: RFC
          • Connected Account Management
        • Operations
          • Importing operations into REST Modules
          • Operation Management
        • Flows Using This Module
    • API Gateway
    • Terminals & Agent
      • Agent
        • Versions supported by Agent
        • How to Update the Agent Version
        • How to back up Agent files
      • Terminals
    • Data Management
      • Engine
        • How to use the Data Engine Proxy
      • Parameters
      • File filters
      • File templates
      • File Jobs
      • JSONata Jobs
    • Data Lake
    • Data Warehouse
      • Data Jobs
      • Databases
    • Artificial Intelligence
    • How to
      • Insert JSON into databases
      • Flattening: Data transformation using JSONata
      • How to use Form Data
      • Understanding recursion in JSONata
      • REST Module Output Consolidation
      • How to configure a component timeout?
      • Isolated in execution: concept and application in variables
      • URL Parameters in API Gateway
      • Use case: API Gateway trigger parameters
      • Use case: Exception Handler in financial transactions
      • Use case: using Groups to manage access to flows
      • How to create a download endpoint and integrate with Power BI
      • Is it possible to use two triggers in a single flow?
    • FAQ
    • GIGS: The complete guide
    • Glossary
  • Cybersecurity
    • Overview
    • Threat Analysis
      • Security Panel
      • Targets
      • Schedules
      • Target Resolution
      • Threat Group
      • Report
    • How to install Bitdefender security agents
Powered by GitBook
On this page
  • Concept
  • Example Operations
  • Creating SMOPs
  • Editing an SMOP
  • Deleting an SMOP
  1. Studio
  2. Integrations
  3. Flows
  4. Data Operations

SMOP (Small Operations)

PreviousPractical example: Handling variablesNextParameterization rules

Last updated 5 months ago

Concept

We often need to modify a parameter before it is referenced in a flow. This happens, for example, when we are looking for a substring within a string or need to add a value to a numeric parameter. For that, there are the SMOPs (Small Operations) feature, which allows you create small operations directly in the field where the parameters are referenced. This means that every operation is executed and its result is passed as a parameter to the module.

SMOP is a data transformation feature that, using , allows you to perform less complex operations with parameters from an platform`s flow.

Some operations with parameters that we can perform in a flow using the SMOP functionality:

  • Adding two numbers, such as an offset and a rowCount, when reading from a database

  • Concatenate two strings or extract a pattern from one of them

  • Changing the data type of a parameter, such as converting a string to a number

With SMOP, whenever a parameter is referenced, it is possible to perform small operations using the data obtained from the flow.

The ideal operations for this functionality have low complexity, so you can transform data using only one line of code. The syntax is JSONata, just like in the Data Transformation module.

The SMOP feature is available for modules with REST, Database and E-mail authentication, and is present in almost all .

SMOP is ideal for less complex data manipulations, without the need for an external response. For more complex data manipulations, also without an external response, we recommend the Data Transformation module. Finally, the Return module is ideal for more complex data manipulations that require a response to an HTTP request.

Example Operations

The following examples describe small operations (expressions) that can be executed, whose JSONata code is limited to one line and returns only one output element, even if that element is an array:

E.g.
Original Parameters
SMOP expression (JSONata)
New parameter
Data Type

1

$length(param1)

12

number

2

param1 + param2

15

number

3

param1 + param2

15

number

4

param1 > param2

VERDADEIRO

Boolean

5

$split(param1, " ")

Array

6

$number(param1)

123.45

Number

7

param1[param2]

1

number

Creating SMOPs

Access to the configuration of SMOPs is made during the configuration of the operation of a compatible module, at the stage of editing a flow.

To create an SMOP, follow the steps below:

  1. Click on "Edit" for the desired and compatible module. Then click on the plus sign "+" located in the parameter settings block:

  2. The SMOP creation window will be displayed:

  • param1 (optional): the original parameter that you want to manipulate must be dragged into this field, and it can be either a flow parameter or a parameter from the preceding flow components. You can also create SMOPs using JSONata operations that do not require parameters

  • value (optional): if the param informed is a flow parameter, the value field will be automatically filled in, and you can also inform the value manually or even not inform it, as needed. The data type used must be compatible with the param informed;

  • add parameter: add more parameters

  • result (read-only): here you will see the result of the created Expression

  • type (read-only): here you will see the data type of the displayed Result (string, number, Boolean, array or object). Note that the type you enter must match the type expected by the module/flow parameter

  1. To add a parameter to the SMOP, select it from the available parameters. To do this, drag and drop it into the SMOP param1 field. Click "Add parameter" if you want to add another parameter.

You can use up to 3 original parameters within a SMOP.

  1. Create a JSONata expression to perform the desired operation, using our template table. For example: param1 + param2.

  2. The Result and Type fields will display the corresponding information.

  3. Click "Save" to finish. The operation field will now display the expression "SMOP", denoting that a SMOP operation has been set up:

Editing an SMOP

To edit a SMOP:

  1. Click on the down arrow sign next to the field with the SMOP you want to edit:

  2. Make the necessary changes and click "Save".

Deleting an SMOP

There are two ways to delete a SMOP:

  1. Click on the sign on the right-hand side of the SMOP.

  2. Open the editing modal and click on "Delete".

It is not possible to reverse the deletion. If you need the same SMOP again, you will have to redo it

expression (required): here you must enter the desired operation. All JSONata expressions are valid. In addition to using a parameter, as in the above, you can use functions like $now(), which require no parameters

{
  "param1" : "minha string"
}
{
  "param1" : 10,
  "param2" : 5
}
{
  "param1" : 10,
  "param2" : 5
}
{
  "param1" : "Integra",
  "param2" : ".",
  "param3" : "Sky"
}
{
  "param1" : "arg1 arg2 arg3"
}
[
  "arg1",
  "arg2",
  "arg3"
]
{
  "param1" : "123.45"
}
{
  "param1" : [1, 2, 3],
  "param2" : 0
}
JSONata
tool modules
examples
Example with 2 parameters