2. Refresh Pipedrive tokens
Triggered by a webhook. Connects Code, Condition, HTTP request, Respond To Webhook, Stop And Error, Supabase, Webhook. Step 2: Create a workflow to refresh your access token when the access token requires a refresh. Post unique data to identify your row in Database and be able to fetch the existing access and refresh token Get token from pipedrive Step 1: Save Refresh token and Access token to DB
Front matter
name: 2. Refresh Pipedrive tokens
description: Triggered by a webhook. Connects Code, Condition, HTTP request, Respond To Webhook, Stop And Error, Supabase, Webhook. ## Step 2: Create a workflow to refresh your access token when the access token requires a refresh. Post unique data to identify your row in Database and be able to fetch the existing access and refresh token ## Get token from pipedrive ## Step 1: Save Refresh token and Access token to DB when authenticated by user and installed. You can also use SET NODE + tobase64 function as done in step 2 ## Step 3: Make an actual API call. In this example, we are using search person API. Please re
category: Automation
kind: Workflow
software: Code|Condition|HTTP request|Respond To Webhook|Stop And Error|Supabase|Webhook2. Refresh Pipedrive tokens
Triggered by a webhook. Connects Code, Condition, HTTP request, Respond To Webhook, Stop And Error, Supabase, Webhook. ## Step 2: Create a workflow to refresh your access token when the access token requires a refresh.
Post unique data to identify your row in Database and be able to fetch the existing access and refresh token ## Get token from pipedrive ## Step 1: Save Refresh token and Access token to DB when authenticated by user and installed. You can also use SET NODE + tobase64 function as done in step 2 ## Step 3: Make an actual API call. In this example, we are using search person API. Please re
Steps
- Stop and Error (stopAndError)
- Sticky Note (stickyNote)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Insert (supabase)
- Sticky Note4 (stickyNote)
- Sticky Note5 (stickyNote)
- Get Pipedrive Token (supabase)
- Get contact from Pipedrive (httpRequest)
- Access Token Invalid (if)
- Success (respondToWebhook)
- Refresh Access Token (httpRequest)
- Sticky Note6 (stickyNote)
- Sticky Note7 (stickyNote)
- Sticky Note8 (stickyNote)
- convert clientId and secret to base64 (code)
- Generate Refresh Token from authcode (httpRequest)
- Look for the related record in Supabase (supabase)
- IF rec not found (if)
- Update tokns in the record (supabase)
- Supabase- look for the record (supabase)
- combine client id and secret (set)
- Get Pipedrive acess token (httpRequest)
- IF success (if)
- Update thr row with new access token (supabase)
- Webhook (webhook)
- Receive request (webhook)
- catch Auth code (webhook)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- Httprequest Workflow: n8n, Code and Condition
- Scheduletrigger Workflow: n8n, Code and Condition (n8n workflow collection) (Http)
- Stock Q&A Workflow
- Webhook Workflow: Code, Condition and HTTP request
- Webhook Workflow: Respond To Webhook and Webhook (n8n workflow collection) (Respondtowebhook) (405)
- Httprequest Workflow: Aggregate, Condition and Extract From File
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.