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).
This commit is contained in:
ashwinkumaragurubaran 2026-08-05 16:21:29 +05:30
parent 99467465c6
commit fe9a985466
3 changed files with 4 additions and 4 deletions

View File

@ -143,7 +143,7 @@ export function DynamicForm({ client, activityId: initialActivityId, instanceId:
try { try {
const headers: Record<string, string> = { const headers: Record<string, string> = {
'templateid': '192', 'templateid': '192',
'x-pipeline-version': 'draft', 'x-pipeline-version': 'latest',
'orgid': '57', 'orgid': '57',
'groupid': '25' 'groupid': '25'
}; };
@ -181,7 +181,7 @@ export function DynamicForm({ client, activityId: initialActivityId, instanceId:
try { try {
const headers: Record<string, string> = { const headers: Record<string, string> = {
'templateid': '192', 'templateid': '192',
'x-pipeline-version': 'draft', 'x-pipeline-version': 'latest',
'orgid': '57', 'orgid': '57',
'groupid': '25' 'groupid': '25'
}; };

View File

@ -125,7 +125,7 @@ export function LogVisitForm({ client, onSuccess, onCancel, onActivityChange }:
try { try {
const headers: Record<string, string> = { const headers: Record<string, string> = {
'templateid': '192', 'templateid': '192',
'x-pipeline-version': 'draft', 'x-pipeline-version': 'latest',
'orgid': '57', 'orgid': '57',
'groupid': '25' 'groupid': '25'
}; };

View File

@ -75,7 +75,7 @@ export function DailyLogMap({
'groupid': '25', 'groupid': '25',
'orgid': '57', 'orgid': '57',
'templateid': '189', 'templateid': '189',
'x-pipeline-version': 'draft' 'x-pipeline-version': 'latest'
} }
); );