cancel
Showing results for 
Search instead for 
Did you mean: 

CPI: API has restriction to pull only 100 records in each call

naveenkk
Explorer
0 Kudos
323

Hi Experts,


There is a source system and source system is exposing an API and CPI needs to get the data from source system and send it to target system(some third party). But they are some restrictions defined in the source system API level to pick the data.
1st restriction is it can give only 100 records in a call not more than that.
2nd restriction is sender API itself can be called only once per minute.
but i have close to 10k records from source application which needs to transfered to target application.

Please explain how to achieve this in CPI level? it would great helpful if you answer.


View Entire Topic
kiran0009
Explorer
0 Kudos

@naveenkk 

Please use a looping process to call the respective service, retrieve the data, and append it to a variable using the content modifier until the loop exits. Once the loop is complete, return the appended data into the main flow body using the content modifier.

naveenkk
Explorer
0 Kudos

Hi Kiran,

Thanks for your response.
I have used the looping process call with condition ${property.Receiver.OData.hasMoreRecords} = 'true'  and to append the data i have used expression ${property,propertyname}${in.body} in content modifier exchange properties.

Thanks everyone for your response now i have implemented the iflow and its working fine.

naveenkk
Explorer
0 Kudos
Hi Kiran,