1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

つづくAdvent Calendar 2023

Day 22

Azure Logic Apps および Power Automate ワークフロー式関数芸

Posted at

式関数のリファレンス ガイド - Azure Logic Apps | Microsoft Learn

この辺を駆使した色々集です。

固定長 → CSV

固定長ファイル
1234567890アイウエオカキクケコAAAAAAAAAA
1234567890サシスセソタチツテトAAAAAAAAAA
1234567890ナニヌネノハヒフヘホAAAAAAAAAA

改行で Array 化

@split(replace(replace(outputs('作成'), decodeUriComponent('%0D'), ' '), decodeUriComponent('%0A'), ' '), ' ')

Array を順に固定桁で取得

@{substring(item(), 0, 10)},@{substring(item(), 10, 10)},@{substring(item(), 20, 10)}\n

FizzBuzz

"For_each_1": {
    "actions": {
        "Append_to_string_variable": {
            "inputs": {
                "name": "Val",
                "value": "@{items('For_each_1')} / @{if(equals(mod(items('For_each_1'), 3), 0), 'Fizz', ' ')}@{if(equals(mod(items('For_each_1'), 5), 0), 'Buzz', ' ')}"
             },
             "runAfter": {
                "Invoke_a_workflow_in_this_workflow_app": [
                    "SUCCEEDED"
                ]
            },
            "type": "AppendToStringVariable"
        }
    },
    "foreach": "@range(1,100)",
    "runAfter": {
        "Initialize_variable": [
            "SUCCEEDED"
        ]
    },
    "runtimeConfiguration": {
         "concurrency": {
                 "repetitions": 1
         }
    },
    "type": "Foreach"
}

csv 2 json / json 2 csv

日付

第 n foo 曜日

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?