GET /api/report/get/{reportId}

This endpoint has been replaced by

Download a campaign report

  1. Use get-active-campaigns | SailPoint Developer Community to find a completed campaign.
  2. Use get-campaign-reports | SailPoint Developer Community to get the ID of one of the reports generated for the campaign.
  3. Use get-report-result | SailPoint Developer Community to check the status of the report. It must be complete before you can download it.
  4. Download the CSV report using get-report | SailPoint Developer Community using a request like this: curl --location 'https://devrel.api.identitynow.com/v3/reports/2c9180857d2eb81b017d33432b4f7de9?fileFormat=csv' \ --header 'Accept: application/csv'

I’m getting an error while running the above API to fetch Campaign Status Report, the error says → api_get': undefined local variable or method reportId’ for main:Object (NameError)
if (stringUrl.index(“/v3/reports/#{reportId}?format=csv”))

Any help is appreciable. Thanks

Are you setting the reportId variable?
If in doubt, print out / log your stringUrl so you can verify