Skip to Content
0

Facing issue with DynamicParameter value on REST Sender Polling

Apr 26 at 02:22 AM

46

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Priyanka Anagani May 02 at 11:52 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

0