cancel
Showing results for 
Search instead for 
Did you mean: 

Facing issue with DynamicParameter value on REST Sender Polling

Former Member
0 Kudos
240

Hi All

I am using Incremental Token the URL URL to call REST webservice using Rest Sender poll adapter.

To get data for last runtime stamp using Incremental requests in Data Format Tab.

When we stop and restart the channel its starting from the date which have given in initial value.

I don't want to be like that. It should pick the data of last run time call even though we have stopped the channel.

How to achieve this. Please suggest.

Thanks & Regards,

Nanda

Accepted Solutions (0)

Answers (1)

Answers (1)

PriyankaAnagani
Active Contributor
0 Kudos

Hi Nanda,

I've also faced the similar issue. Whenever we restart the system, the incremental token used to get reset to the value given in channel.

As a temporay fix, I used to change the value in channel whenever the system gets restarted. Later we've upgraded our SP. Refer the SAP note # 2352872 and update the support pack as required.

--Priyanka

Former Member
0 Kudos

Thanks Priyanka for your inputs.

In the same we have another requirement.

1.We are getting response from API in the pages.. 100 entries per_page.

suppose total_entries = 191 it will come as pages = 2.

We are getting only 1st page entries everytime.

I tried by giving in Incremental Requests: incremental Type = ResponseContent Incremental ID Element = 1

<page>1</page> <per_page>100</per_page> <total_pages>2</total_pages> <total_entries>191</total_entries> <entries> <id>172</id> <entity>Product</entity> <status>complete</status> <percent_completed>1.0</percent_completed> <operation>upsert</operation> <created_at>2018-04-27T00:45:21.520+10:00</created_at> <updated_at>2018-04-27T00:45:24.785+10:00</updated_at> <error_count>0</error_count> <result>Success</result> </entries>

2. Is it possible to achieve both both Increment token for page and last run time.

Please suggest on this.

Thanks & Regards,

Nanda

PriyankaAnagani
Active Contributor
0 Kudos

Hi Nanda,

1. I'm not clear on your question1. Are you not getting all the records as payload when you poll the REST service? If you are trying to split the data into multiple messages, then you can check "Split Result into multiple Messages" in REST sender channel and provide the Xpath or JSON object name based on which message has to be divided.

2. At a time we can have only one. In the REST communication channel, we've option to choose either "Response Content" or "Time of Last Call" for incremental requests.

--Priyanka