Gave it the campaign filter ID, but it came back with the following:
{
"detailCode": "404 Not found",
"trackingId": "<REDACTED>",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The server did not find a current representation for the target resource."
},
{
"locale": "en-US",
"localeOrigin": "REQUEST",
"text": "The server did not find a current representation for the target resource."
}
],
"causes": []
}
Is anyone else able to get a fitler via this API? Tried the v3 API as well, no luck.
Thatâs exactly what I did to get the IDsâŚand then I tried using one of the returned IDs for the subsequent callâŚand that did NOT work when you run it against get-campaign-filter-by-id | SailPoint Developer Community on the page.
Also tried with the Powershell SDK cmdletâŚwhich also do not work (v3, v2024).
@RandomUser4096
Try to pull it from UI instead of GET all. https://tenant.identitynow.com/ui/admin/#admin:cert:filters:cd04e2xxxxxxd293b1c and then use the same id to pull.
No. Thatâs not the concern (i.e. Not trying to âfind some way to get the dataâ, but rather, what should work, should work).
Another example, the following returns the first filterâs ID without issue (PowerShell SDK): $($(Get-V2024CampaignFilters).items | select-object -first 1).id
But, if I then do this, it wouldnât return that particular filter object, even though itâs the exact ID that was retrieved: Get-V2024CampaignFilterById -FilterID $($(Get-V2024CampaignFilters).items | select-object -first 1).id
Same behaviour / issue. V3 was my first choiceâŚthinking itâs relatively more mature / filed tested by othersâŚbut no go.
In your code about, youâre only getting a list of filters. Yes, that works. But now, if you try to get ONLY one filter by supplying the ID, that doesnât seem to work.
Itâs the âget campaign filter by IDâ thatâs not working (for me).
I have not tried with the v2024 api, but the V3 api returns the result.
Please see the below attached postman call.
Here to get the Filter ID i have used this api call: list-campaign-filters | SailPoint Developer Community
Now, just make sure that in Headers, you have Content-Type: application/json X-SailPoint-Experimental:true
Also the body should be set as none
Indeed, there is an issue with the API specification that is affecting the API explorer within the API specs and possibly even the powershell sdk. I have a fix that is being pushed now. If you run this API using postman or another tool, it will work.