MENU

【備忘録】

複数の項目の取得
列名 eq null
(列名が空白なものを抽出)

変数の設定(あとでリアクションした人のメルアド入れる)

メッセージの詳細の取得

条件分岐:次の値に等しい(true)
not(empty(body(‘Get_message_details’)?[‘reactions’]))
※メッセージ詳細のリアクションがされていればyesへ

JSONの解析
コンテンツ:body(‘Get_message_details’)?[‘reactions’]

{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "reactionType": {
                "type": "string"
            },
            "user": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "displayName": {
                        "type": "string"
                    },
                    "mail": {
                        "type": "string"
                    }
                }
            },
            "createdDateTime": {
                "type": "string"
            }
        },
        "required": [
            "reactionType",
            "user",
            "createdDateTime"
        ]
    }
}

ユーザーのプロファイル取得:items(‘Apply_to_each_2’)?[‘user’]?[‘user’]?[‘id’]

変数の設定で、上記プロファイルからメルアド取得(firstだけ)

広告

目次