Skip to content
Operations

Purchase approvals in Teams

Request, button-based approval and order logged.

Request sign-upDownload JSON7 min to set up≈ 1 credit per run

How the flow works

  1. Human Input

    Trigger

    Purchase request form

    Human Input·form_submission

  2. Approval

    Step 1

    Create the approval links

    Approval·create_approval_links

  3. Microsoft Teams

    Step 2

    Ask for approval on Teams

    Microsoft Teams·microsoft_teams_send_channel_message

  4. Approval

    Step 3

    Wait for the decision

    Approval·wait_for_approval

  5. Google Sheets

    Step 4

    Record the approved purchase

    Google Sheets·insert_row

Set it up in 4 steps

  1. 1

    Import the template

    In the platform, go to Flows → Import and upload the JSON.

  2. 2

    Connect your accounts

    Each component asks for its connection (Human Input, Approval, Microsoft Teams, Google Sheets). Credentials are stored encrypted.

  3. 3

    Review the highlighted fields

    Pick the channel, sheet, calendar or pipeline. Missing fields are shown in red.

  4. 4

    Test and turn it on

    Run a test with real data, check each step’s output and publish the flow.

View the template JSON
{
  "name": "Purchase approvals in Teams",
  "description": "Request, button-based approval and order logged.",
  "tags": [
    "Operations"
  ],
  "pieces": [
    "@flooows/component-forms",
    "@flooows/component-approval",
    "@flooows/component-microsoft-teams",
    "@flooows/component-google-sheets"
  ],
  "template": {
    "displayName": "Purchase approvals in Teams",
    "trigger": {
      "name": "trigger",
      "type": "PIECE_TRIGGER",
      "valid": false,
      "displayName": "Purchase request form",
      "settings": {
        "pieceName": "@flooows/component-forms",
        "pieceVersion": "~0.5.1",
        "pieceType": "OFFICIAL",
        "packageType": "REGISTRY",
        "triggerName": "form_submission",
        "input": {
          "inputs": [
            {
              "displayName": "Qué necesitas",
              "type": "text",
              "required": true
            },
            {
              "displayName": "Importe",
              "type": "number",
              "required": true
            },
            {
              "displayName": "Motivo",
              "type": "text",
              "required": false
            }
          ]
        },
        "inputUiInfo": {},
        "propertySettings": {}
      },
      "nextAction": {
        "name": "step_1",
        "type": "PIECE",
        "valid": false,
        "skip": false,
        "displayName": "Create the approval links",
        "settings": {
          "pieceName": "@flooows/component-approval",
          "pieceVersion": "~0.2.2",
          "pieceType": "OFFICIAL",
          "packageType": "REGISTRY",
          "actionName": "create_approval_links",
          "input": {},
          "inputUiInfo": {},
          "propertySettings": {},
          "errorHandlingOptions": {
            "retryOnFailure": {
              "value": true
            },
            "continueOnFailure": {
              "value": false
            }
          }
        },
        "nextAction": {
          "name": "step_2",
          "type": "PIECE",
          "valid": false,
          "skip": false,
          "displayName": "Ask for approval on Teams",
          "settings": {
            "pieceName": "@flooows/component-microsoft-teams",
            "pieceVersion": "~0.8.2",
            "pieceType": "OFFICIAL",
            "packageType": "REGISTRY",
            "actionName": "microsoft_teams_send_channel_message",
            "input": {
              "contentType": "html",
              "content": "Solicitud: {{trigger.Qué necesitas}} ({{trigger.Importe}} €)<br><a href=\"{{step_1.approvalLink}}\">Aprobar</a> · <a href=\"{{step_1.disapprovalLink}}\">Rechazar</a>"
            },
            "inputUiInfo": {},
            "propertySettings": {},
            "errorHandlingOptions": {
              "retryOnFailure": {
                "value": true
              },
              "continueOnFailure": {
                "value": false
              }
            }
          },
          "nextAction": {
            "name": "step_3",
            "type": "PIECE",
            "valid": false,
            "skip": false,
            "displayName": "Wait for the decision",
            "settings": {
              "pieceName": "@flooows/component-approval",
              "pieceVersion": "~0.2.2",
              "pieceType": "OFFICIAL",
              "packageType": "REGISTRY",
              "actionName": "wait_for_approval",
              "input": {},
              "inputUiInfo": {},
              "propertySettings": {},
              "errorHandlingOptions": {
                "retryOnFailure": {
                  "value": true
                },
                "continueOnFailure": {
                  "value": false
                }
              }
            },
            "nextAction": {
              "name": "step_4",
              "type": "PIECE",
              "valid": false,
              "skip": false,
              "displayName": "Record the approved purchase",
              "settings": {
                "pieceName": "@flooows/component-google-sheets",
                "pieceVersion": "~0.19.5",
                "pieceType": "OFFICIAL",
                "packageType": "REGISTRY",
                "actionName": "insert_row",
                "input": {
                  "values": {
                    "Concepto": "{{trigger.Qué necesitas}}",
                    "Importe": "{{trigger.Importe}}"
                  }
                },
                "inputUiInfo": {},
                "propertySettings": {},
                "errorHandlingOptions": {
                  "retryOnFailure": {
                    "value": true
                  },
                  "continueOnFailure": {
                    "value": false
                  }
                }
              }
            }
          }
        }
      }
    },
    "valid": false,
    "schemaVersion": "1"
  },
  "blogUrl": "https://flooows.com/en/templates/purchase-approval-teams",
  "metadata": {
    "publisher": "flooows",
    "lang": "en",
    "setupMinutes": 7,
    "creditsPerRun": 1
  }
}

More templates

Your first floow, running today.

Work out the price of your plan in a minute and request your sign-up, or book a demo and we will help your team design its first flows.

✓ No credit card✓ Human support✓ Data hosted in Spain