【问题标题】:Microsoft Power Automate - Hide body from responseMicrosoft Power Automate - 从响应中隐藏正文
【发布时间】:2022-11-10 06:25:18
【问题描述】:

我正在尝试在 Microsoft Power Platform 中开发自定义连接器。目前我的连接器有一个动作:

paths:
  /Array_Find-Differences:
    post:
      description: Find items from one array that is not present in the second array
      operationId: post-array-find-differences
      summary: Array - Find Difference Between Two Arrays
      tags:
        - Array
      parameters:
        - name: array_Find-Difference-Definition
          in: body
          schema:
            $ref: '#/definitions/Array_Find-Difference-Definition'
          description: Provide an input array as well as an array to compare against.
          required: true
          x-ms-visibility: important
      consumes:
        - application/json
      produces:
        - application/json
      responses:
        '200':
          description: >-
            Returns a new array containing the values that are not present in
            the original array.
          examples:
            application/json: []
          schema:
            type: object
            properties:
              array:
                type: array
                items:
                  type: string
                  description: The new array containing different values.
                  title: Difference Array
                  x-ms-visibility: important
                description: array
definitions:
  Array_Find-Difference-Definition:
    type: object
    x-ms-visibility: important
    properties:
      array:
        type: string
      compare:
        type: string
    example:
      array:
        - 1
        - 2
        - 3
      compare:
        - 1
        - 2
        - 3
        - 4

正如您在响应中看到的,我只将“Difference Array”定义为我想要显示的输出。

但是,在 Power Automate 工作流设计器中,我看到了其他选项,例如 arraybody

我该如何隐藏这些?

【问题讨论】:

    标签: power-automate power-automate-custom-connector


    【解决方案1】:

    在 UI 中,您可以在导入“来自样本”的响应时设置每个属性的可见性。如果然后单击相应的属性,则可以从那里更改可见性。

    这能解决你的问题吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-02-25
      • 1970-01-01
      • 2019-11-08
      • 1970-01-01
      • 2020-09-24
      • 2021-09-16
      相关资源
      最近更新 更多