Paging step based on response attribute containing @ symbol

Did you get a chance to try this? if this doesn’t work, you can make this change,

#set($nextLink = $response[“@odata”]?.nextLink)
#if($nextLink)
$log.info(“Next Link: $nextLink”)
$endpoint.fullUrl = $nextLink
#else
$log.error(“Next Link is null or not found in the response.”)
TERMINATE
#end

I see you are trying to integrate ISC with the GRAPH API, does the standard connector not meet your needs?

You can always revert to a before operation rule so you can use Java code to handle the pagination.

Hi @svenkitachalam ,

As per the experience i have, working with GRAPH API, when we reach the last page, in that case odata.nextLink property will be completely missing from the response. So can you please try below snippet of the code and see if that helps

#set($defaultNextLink = "NO_NEXT_LINK_AVAILABLE")
#if($response && $response.@odata && [email protected])
    #set($nextLink = [email protected])
    $endpoint.fullUrl = $nextLink
#else
    #set($nextLink = $defaultNextLink)
#end
TERMINATE IF $nextLink =="NO_NEXT_LINK_AVAILABLE"

I have not tried it yet in ISC but just extending the VLT logic mentioned above by other colleagues. Please check and let us know if this helps. Otherwise, please try with @colin’s suggestion.

Thank you.
Regards
Vikas.

Thanks all for your inputs. I got it working with the below paging steps:

TERMINATE_IF $response.[‘@odata.nextLink’]$ == NULL
$endpoint.fullUrl$ = $response.[‘@odata.nextLink’]$

This is the syntax to escape @ symbol in JSON path expression.

1 Like

The standard connector doesn’t let you manage all the attributes which SailPoint support confirmed and hence having to implement a webservice connector instead.

1 Like

does $log.info() actually work in the paging? would that dump to ccg.log or somewhere else? i’m trying to use this and it doesn’t appear to be working.

$log.info() typically logs information to the connector log file.

just to confirm, which log file is the connector log file? i don’t see per-connector log files on my VAs.

Hi,

Sorry, when I said connector log file; this is what I meant - https://community.sailpoint.com/t5/IdentityNow-Articles/Enabling-Connector-Logging-in-IdentityNow/ta-p/188107?_ga=2.192633134.549720369.1677512159-1413086531.1675185796&_gl=1*ew0ox7*_ga*MTQxMzA4NjUzMS4xNjc1MTg1Nzk2*_ga_SS72Z4HXJM*MTY3Nzc2ODY4MS42MC4xLjE2Nzc3NzAwNjguNDguMC4w

or you can use this link - CCG Enable Debug Log by Connector - Compass

Hope this helps!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.