AutomationFlowsSlack & Telegram › Sap Sample

Sap Sample

SAP Sample. Uses httpRequest, telegram, emailSend, CUSTOM. Scheduled trigger; 12 nodes.

Cron / scheduled trigger★★★★☆ complexity12 nodesHTTP RequestTelegramEmail SendCustom
Slack & Telegram Trigger: Cron / scheduled Nodes: 12 Complexity: ★★★★☆ Added:

This workflow follows the Emailsend → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "SAP Sample",
  "nodes": [
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "ffdc5791-993d-4ce6-af4d-c8b723bd9f70",
              "leftValue": "={{ $json.current.temperature_2m }}",
              "rightValue": 20,
              "operator": {
                "type": "number",
                "operation": "lt"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        -128,
        -224
      ],
      "id": "66a400a1-1f66-4704-85be-18d7231f07db",
      "name": "Colder than 20\u00b0C?"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        -608,
        -224
      ],
      "id": "7d5b102c-4d6c-476d-9fce-1691792dd790",
      "name": "Every Hour"
    },
    {
      "parameters": {
        "url": "https://api.open-meteo.com/v1/forecast?latitude=48.7823&longitude=9.177&current=temperature_2m&forecast_days=1",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -320,
        -224
      ],
      "id": "8c8f3460-32ec-4450-b21f-e2c0c58449a2",
      "name": "Get Current Temp"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "86beceb2-d436-4346-bb88-dd0b813fb24a",
              "leftValue": "={{ $json.Price }}",
              "rightValue": 10,
              "operator": {
                "type": "number",
                "operation": "gt"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        336,
        -208
      ],
      "id": "8da3c261-e9bf-445b-bdd3-0182e79b0bbf",
      "name": "Price over 10\u20ac?"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "937a0935-1a09-4f0f-932a-da3e46ab8d2c",
              "name": "Price",
              "value": "3.99",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "include": "except",
        "excludeFields": "ToSupplier, ToSalesOrderLineItems, CreatedAt, ChangedAt",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        544,
        -208
      ],
      "id": "0404c1a1-1f03-4f62-966d-6a6abfe1f981",
      "name": "Lower Price"
    },
    {
      "parameters": {
        "content": "SAP",
        "height": 192,
        "width": 1424,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -576,
        -48
      ],
      "typeVersion": 1,
      "id": "e6a55192-d71b-42aa-91ff-55a259957453",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "Temp. & Price Check",
        "height": 224,
        "width": 1424,
        "color": 4
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -576,
        -272
      ],
      "typeVersion": 1,
      "id": "9c375c24-d0e6-4e0b-b506-49de9326613c",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "chatId": "123456789",
        "text": "Price for Ice lowered",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        864,
        160
      ],
      "id": "b9ed6fef-3e0a-46ce-8dfc-fdae977d8c29",
      "name": "Send a text message",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "fromEmail": "from@whatever.com",
        "toEmail": "to@whatever.com",
        "subject": "Price for Ice Lowered!",
        "html": "Price for Ice lowered!!",
        "options": {}
      },
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [
        864,
        304
      ],
      "id": "9e12479f-35ef-4542-9709-913b74cd8640",
      "name": "Send email",
      "credentials": {
        "smtp": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "content": "Comunication",
        "height": 320,
        "width": 1632
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -576,
        144
      ],
      "typeVersion": 1,
      "id": "a145f3dd-0aeb-43b1-954f-ea58db072029",
      "name": "Sticky Note2"
    },
    {
      "parameters": {
        "servicePath": {
          "__rl": true,
          "value": "/sap/opu/odata/iwbep/GWSAMPLE_BASIC/",
          "mode": "list",
          "cachedResultName": "GWSAMPLE_BASIC (ZGWSAMPLE_BASIC)",
          "cachedResultUrl": "host:port/sap/opu/odata/iwbep/GWSAMPLE_BASIC/"
        },
        "entitySet": {
          "__rl": true,
          "value": "ProductSet",
          "mode": "list",
          "cachedResultName": "ProductSet",
          "cachedResultUrl": "host:port/sap/opu/odata/iwbep/GWSAMPLE_BASIC/ProductSet"
        },
        "options": {
          "$filter": "ProductID eq 'ICE001'"
        },
        "advancedOptions": {}
      },
      "type": "CUSTOM.sapOData",
      "typeVersion": 1,
      "position": [
        160,
        -16
      ],
      "id": "a6b2ca2e-108b-4bb1-b46f-3a2006290d9b",
      "name": "Get Product Info from SAP",
      "credentials": {
        "sapOdataApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "servicePath": {
          "__rl": true,
          "value": "/sap/opu/odata/iwbep/GWSAMPLE_BASIC/",
          "mode": "list",
          "cachedResultName": "GWSAMPLE_BASIC (ZGWSAMPLE_BASIC)",
          "cachedResultUrl": "host:port/sap/opu/odata/iwbep/GWSAMPLE_BASIC/"
        },
        "entitySet": {
          "__rl": true,
          "value": "ProductSet",
          "mode": "list",
          "cachedResultName": "ProductSet",
          "cachedResultUrl": "host:port/sap/opu/odata/iwbep/GWSAMPLE_BASIC/ProductSet"
        },
        "entityKey": {
          "__rl": true,
          "value": "='ICE001'",
          "mode": "id"
        },
        "data": "={ \"Price\" : \"{{ $json.Price }}\" }",
        "advancedOptions": {}
      },
      "type": "CUSTOM.sapOData",
      "typeVersion": 1,
      "position": [
        672,
        -16
      ],
      "id": "eba51532-ec98-4785-9854-9040287064a1",
      "name": "Update Product Price",
      "credentials": {
        "sapOdataApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Colder than 20\u00b0C?": {
      "main": [
        [
          {
            "node": "Get Product Info from SAP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every Hour": {
      "main": [
        [
          {
            "node": "Get Current Temp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Current Temp": {
      "main": [
        [
          {
            "node": "Colder than 20\u00b0C?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Price over 10\u20ac?": {
      "main": [
        [
          {
            "node": "Lower Price",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Lower Price": {
      "main": [
        [
          {
            "node": "Update Product Price",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send email": {
      "main": [
        []
      ]
    },
    "Get Product Info from SAP": {
      "main": [
        [
          {
            "node": "Price over 10\u20ac?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Product Price": {
      "main": [
        [
          {
            "node": "Send email",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e0809835-62a3-417e-837e-c46a452b741e",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "XORzzty27vHCdPP4",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

SAP Sample. Uses httpRequest, telegram, emailSend, CUSTOM. Scheduled trigger; 12 nodes.

Source: https://gist.github.com/MagPasulke/fd8f5d39fc696ae4b511ddc4d756875a — original creator credit. Request a take-down →

More Slack & Telegram workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Slack & Telegram

Recover missed opportunities automatically with this n8n automation template. The workflow connects with Calendly, identifies no-show meetings, and instantly sends personalized Telegram messages encou

HTTP Request, Telegram, Email Send
Slack & Telegram

Tired of shelling out big bucks for newsletters?

HTTP Request, Telegram, Email Send
Slack & Telegram

debug. Uses httpRequest, slack, redis, mailgun. Scheduled trigger; 60 nodes.

HTTP Request, Slack, Redis +2
Slack & Telegram

qualiopi. Uses airtable, telegram, emailSend, httpRequest. Webhook trigger; 51 nodes.

Airtable, Telegram, Email Send +3
Slack & Telegram

. Uses googleSheets, telegram, httpRequest, wise. Scheduled trigger; 36 nodes.

Google Sheets, Telegram, HTTP Request +2