cancel
Showing results for 
Search instead for 
Did you mean: 

DynamicParameter value on REST Sender Polling

Former Member
0 Kudos

Dear All,

I have the requirement to fetch data(GET operation) from REST webservice.

For that I am using REST sender polling adapter.

I fetched the data from REST webservice when I call the Target URL like below

https://tools-dev:9307/ceres/data/basic?lastChangedTime=2015-06-25T11:30:00Z

The value '2015-06-25T11:30:00Z mentioned in the URL should be dynamic.It should be change automatically with current date and timestamp when PI call the webservice.

Accroding to SAP help document :Configuring the Sender REST Adapter with Polling - Advanced Adapter Engine - SAP Library

I should be used incremental key. but I could n't find the way how the get dynamic value in URL.

Please suggest me on this if you have an idea.

Thank you very much.

With Best Regards,
Sateesh N

Accepted Solutions (1)

Accepted Solutions (1)

RaghuVamseedhar
Active Contributor
0 Kudos

Sateesh,

Please check this blog, which has REST dynamic URL

If you want to trigger a message from PI itself. You place a trigger file in some folder, get the time in mapping and perform Asyn-sync bridge. Link

Former Member
0 Kudos

My problem was resolved on dynamic value generation.

https://tools-dev:9307/ceres/data/basic?lastChangedTime={incrementalToken}

But make sure your SAP XIAF is updated latest patch level.

Thank you

Sateesh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sateesh,

I am using the REST Polling adapter where my URL is

https://crust.impl.com/API/Employee?End_Date=2016-03-03-08:00&Start_Date=2016-01-01-08:00

Here my End Date is current date and Start Date is when my interface last ran, so I can use {IncrementalToken} for Start_Date which can be configured thru Incremental token of last run, how do I pass current date timestamp for End_Date

Thanks

Ravijeet