【问题标题】:Microsoft Power Automate Switch caseMicrosoft Power Automate Switch 机箱
【发布时间】:2020-06-10 07:59:36
【问题描述】:

所以我要复制的是以下内容,

   string str = GetInput from Form();

   switch (str)
   {
      case "1":
      case "1 week":
          assign variable = 1
          Insert variable to excel column
          break;
      case "2":
      case "2 weeks":
          assign variable = 3
          Insert variable to excel column
      case "4":
      case "4 weeks":
          assign variable = 4
          Insert variable to excel column
      default:
          assign variable = 0
          Insert variable to excel column
          break;
  }

目前我的流程类似于下图

Flow

  1. 提交新响应时
  2. 获取回复详情
  3. 创建项目操作(使用电源自动运行上述开关条件 - 函数)

【问题讨论】:

    标签: switch-statement power-automate


    【解决方案1】:

    您在流程中使用Apply for Each 控件,这相当于普通编程语言中的For 循环。您需要使用Switch 控制您的问题,如下图所示。我使用了一个示例字符串参数来展示 switch 语句的用法,但是如果您的数据来自数组,您可以在 Apply for Each 循环中应用 Switch

    Read this article 获取分步指南。

    【讨论】:

      猜你喜欢
      • 2021-06-07
      • 1970-01-01
      • 2021-02-25
      • 1970-01-01
      • 1970-01-01
      • 2020-09-24
      • 2022-11-10
      • 2020-09-27
      • 1970-01-01
      相关资源
      最近更新 更多