I have around 50k records in my target Application named as SkyZone.
Requirement:
Run the Aggregation and you will get “accessToken” in the response in the {{accessToken}} tag. and that “accessToken” we have to pass in the Header,
X-Continuation-Path : accessToken
for the next set of Account Aggregation till the time all Account has been aggregated.
Scenario:
When I am running the Account Aggregation it is fetching first 5000 Accounts and in the response we have “last” tag which contains token. That token we need to use in header of next call to fetch the Accounts.
Can we perform it via only one HTTP Operation for Account Aggregation.
Do we need to write After and Before Web Service Operation rules.
Can we add more than one rules in single HTTP Operation.
Please suggest me the approach to resolve this issue.
here is the response format:
<?xml version="1.0" encoding="utf-8"?>
cryzone-alert-raiser
cryzone-checkin-raiser
AC.Raj@test.uxi.ab
Caitlin
Raj
cryzone:application=com.cryzoneapp
cryzone_user:group=3mnfiz2kzpa
this is the place where token exist
Provide an empty string X-Continuation-Token header on the first request. If the response contains an X-Continuation-Token header, it can be used to request the next page by making the identical request again with the new token. If the response does not return an X-Continuation-Token header, then there are no more items
Issue : I am getting the “accessToken” value in response which I have to use in header for my next aggregation, till the time we are not receiving any token details in “accessToken” field.
You can read the response headers from within an after operation rule, save them to transientValues, and use that to update the request headers in the next request using a before operation rule.
In first aggregation call, I have to pass the “X-Continuation-Token” as empty, so that it will generate the “X-Continuation-Token” in the Response Headers.
That value from the Response Headers again I have to loop back in first call.
in your case one token is sufficient to get all 50 records? if yes then go for custom auth operation to get the token and store in application attribute, then uses application attribute in header to call users Api.