From fe9a985466935aa247f76d317c1254c19f77c3a7 Mon Sep 17 00:00:00 2001 From: ashwinkumaragurubaran Date: Wed, 5 Aug 2026 16:21:29 +0530 Subject: [PATCH] fix(pipeline): call papi2 with x-pipeline-version 'latest', not 'draft' 'draft' is the authoring working copy and only exists on the env where the pipeline is edited (dev). On a consumer env (qa) only published versions are deployed, so a draft call returns 'starter node not found'. 'latest' resolves to the latest published version, which exists on every env (matches how DailySalesReportPage already calls it). --- src/components/forms/DynamicForm.tsx | 4 ++-- src/components/forms/LogVisitForm.tsx | 2 +- src/components/maps/DailyLogMap.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/forms/DynamicForm.tsx b/src/components/forms/DynamicForm.tsx index a4721b9..5526a15 100644 --- a/src/components/forms/DynamicForm.tsx +++ b/src/components/forms/DynamicForm.tsx @@ -143,7 +143,7 @@ export function DynamicForm({ client, activityId: initialActivityId, instanceId: try { const headers: Record = { 'templateid': '192', - 'x-pipeline-version': 'draft', + 'x-pipeline-version': 'latest', 'orgid': '57', 'groupid': '25' }; @@ -181,7 +181,7 @@ export function DynamicForm({ client, activityId: initialActivityId, instanceId: try { const headers: Record = { 'templateid': '192', - 'x-pipeline-version': 'draft', + 'x-pipeline-version': 'latest', 'orgid': '57', 'groupid': '25' }; diff --git a/src/components/forms/LogVisitForm.tsx b/src/components/forms/LogVisitForm.tsx index 4bf547a..881e9cd 100644 --- a/src/components/forms/LogVisitForm.tsx +++ b/src/components/forms/LogVisitForm.tsx @@ -125,7 +125,7 @@ export function LogVisitForm({ client, onSuccess, onCancel, onActivityChange }: try { const headers: Record = { 'templateid': '192', - 'x-pipeline-version': 'draft', + 'x-pipeline-version': 'latest', 'orgid': '57', 'groupid': '25' }; diff --git a/src/components/maps/DailyLogMap.tsx b/src/components/maps/DailyLogMap.tsx index eff87ee..0a32ecc 100644 --- a/src/components/maps/DailyLogMap.tsx +++ b/src/components/maps/DailyLogMap.tsx @@ -75,7 +75,7 @@ export function DailyLogMap({ 'groupid': '25', 'orgid': '57', 'templateid': '189', - 'x-pipeline-version': 'draft' + 'x-pipeline-version': 'latest' } );