Context URL Parsing Error

I have a web service connector that needs a filter added to the context URL for the aggregation. This works in postman:
/contacts?filter=deleted eq ‘False’

However, when I add this as the context URL for the aggregation operation, I get an error “failed to parse filters; please fix any errors and try again: error parsing criteria expression”. Snippet of message showing encoding also shows token is added:
image

When I add the token in Postman to try to mimic ISC, it looks like this:
image

Any ideas on how I can get this to parse correctly?

Hi @cstepp,

Welcome to the SailPoint Developer Community.

How are you passing the context URL? can you show the format? and how are you attaching the token to the url.

sailpoint.connector.ConnectorException: Url: https://api-
platform.cvent.com/ea/contacts?filter=deleted%20eq%20'False'?token=

Because if you see the url in the above error, parameters filter and token are separated by “?” but separator would be “&” in between parameters of api url. I believe this might be the reason for the error.

I hope this helps.

Thanks,
Vijay

Hi @cstepp as @VijayMaripi says you are passing the param as wrong you need to use & operator to filter multiple options. Like below:

https://api-
platform.cvent.com/ea/contacts?filter=deleted eq 'False'&token= TokenName

Thanks.

Thanks @VijayMaripi and @Santhakumar - I will try this and let you know the results.

2 Likes

Hi @cstepp Personally, I think your best approach is to filter (deleted eq ‘False’) using a different method than URL parameters. My understanding is that ISC will always add the token to the end of the context URL with a “?” parameter, as authentication is handled separately to the distinct method calls.
You have 2 options:

  1. Have ISC do the filter after aggregating all results - see https://community.sailpoint.com/t5/IdentityNow-Wiki/IdentityNow-Account-Filtering-during-Account-Aggregation/ta-p/142873
  2. Change the method of aggregation from GET to POST and send the filter in the body of the request - see https://developers.cvent.com/documentation#tag/Contacts/operation/listContactsPostFilters

Thanks, @VijayMaripi and @Santhakumar - that resolved my issue. Appreciate your help!

1 Like