Getting HTTP Request Error when Creating a Leaver Campaign for a Workflow

I am creating a workflow that will REVOKE any non-standard entitlements through a Campaign and Campaign Filter when an identity’s cloudLifecycleState changes to “inactive” status.

At the “Create Leaver Campaign” action its performing an Http Request (see below)

At this point, I’m getting an error and I’m not sure where I’m going wrong.

ActivityTaskFailed 2025-02-28T16:12:06.607894097Z {displayName:Create Leaver Campaign,error:request failed,stepName:hTTPRequest,task:sp:http,technicalName:HTTP Request}
WorkflowExecutionFailed 2025-02-28T16:12:06.632852628Z {error:task failed: activity error (type: sp:external:http:v2, scheduledEventID: 28, startedEventID: 29, identity: 1@sp-workflow-worker-stg-us-east-1-56f986f549-rpxm9@sp-workflow-engine): request failed (type: HTTP Response Returned a Client Error, retryable: false): request failed: 404 - 404 Not Found - {\detailCode:\404 Not found,\trackingId:\5fea83e2ffd9414fb5297416d4304b31,\messages:[{\locale:\und,\localeOrigin:\REQUEST,\text:\The server did not find a current representation for the target resource.},{\locale:\en-US,\localeOrigin:\DEFAULT,\text:\The server did not find a current representation for the target resource.}],\causes:}}

are the URLs correct? the “-s” by the end of the tenant´s name looks like the “b” (from “sb”) is missing

the -s is correct. And I figured out what the Http request issue was. But now I am having an issue closing the campaign.

I am getting the 400.1 error when trying to use {{baseUrl}}/v3/campaigns/{{campaignId}}/complete to close a campaign

My campaign is past due per the documentation

My body is

{
“autoCompleteAction”: “REVOKE”
}

I’ve tried it with v3 and v2024 and get the same error

Hello Mark,
The problem is, when you create a campaign directly with the standard action in the workflow it works, but when you create a campaign via HTTP Request in the workflow, you need to activate the campaign before revoke the entitlements. You can do this with this with the API start-campaign | SailPoint Developer Community
Add a HTTP Request before the revoke step in your workflow with this.

Maria Lima, that worked thank you. But I’m still having an issue where the entitlements aren’t getting revoked. In the screenshot below the campaign shows the decision is “Revoked” but Revoked Completed shows “false”

the json for the AUTOCOMPLETE LEAVER CAMPAIGN

The Create Leaver Campaign: