Forum Discussion

rpc1235x's avatar
rpc1235x
New Contributor II
2 years ago
Solved

Dynamic range of dates for REST

My current pipeline works with pipeline parameters defining the range of dates However my goal is to automatize this for each month. My idea is to schedule a task for the first of every month ...
  • Aleksandar_A's avatar
    Aleksandar_A
    2 years ago

    Hello again,

    As I mentioned above, this is not how a typical pagination would look like using the REST GET / HTTP Client Snap, since I'm not aware about any information in the response that can be used to set the Has Next and Next URL properties. 

    And since that you have the total number of pages in the info request, this approach will generate as many documents (requests) as you have pages.

    If your parameters are static you can map them in the Map - Pages Mapper Snap and pass them in the JSON Splitter in the Include Paths section so you can use them in the REST GET Snap.

    Please refer to the attached pipeline and let me know if this helps you.

    Regards,

    Aleksandar.