tencent cloud

Feedback

Transform

Last updated: 2023-08-03 17:12:12

    Overview

    Transform is used to orchestrate and convert the format of the data in message. It can modify payload, attribute, and variable.

    Operation Configuration

    Parameter configuration

    Parameter Data Type Description Required Default Value
    payload any The configured payload. No None
    attribute dict The configured attribute. No None
    variable dict The configured variable. Yes None

    Configuration page

    https://staticintl.cloudcachetci.com/yehe/backend-news/g4Yg270_1.png

    Output

    The message output by the component is as detailed below:

    message Attribute Value
    payload If payload is added to Output, the execution result in payload will be output; otherwise, the payload of the previous component will be inherited.
    error
    • error will be empty if the flow is executed successfully.
    • error will be of dict type and contain the Code and Description fields if the flow fails to be executed. The Code field indicates the error type, and the Description field indicates the error details.
    attribute This attribute is of dict type. If attributes is added to Output, the execution result in attributes will be output; otherwise, the attribute of the previous component will be inherited.
    variable If variables is added to Output, the variable of the previous component and the new variable added in the Transform component will be output together; otherwise, the variable of the previous component will be inherited.

    Examples

    Setting payload

    Add payload.
    image-20210426173059453

    Setting attribute

    Add and edit attributes. As attributes is of dict type, the expression output also must be of dict type.
    image-20210426174817312

    Setting variable

    1. Add variables. Enter the name of the variable to be declared for Variable name.
      image-20210426174902089
    2. Add an expression and edit the variables.
      image-20210426175013126
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support